Skip to content

How to download raster data from WCS #104

Answered by eblondel
dominicroye asked this question in OGC WCS
Discussion options

You must be logged in to vote

I've tried the following code (see additional notes in the comments...).

At first, you should use the WCSClient to interrogate Web Coverage Service, not the CSWClient which is for geographic metadata cataloguing.

Regarding the data access, this server seems to be limited to very small data coverages.

require(ows4R)

#get WCS client connection (be careful, it's WCS, not CSW)
#WCS = Web Coverage Service (for raster data access)
#CSW = Catalogue Service for the Web (for geographic metadata cataloguing)
WCS = WCSClient$new(
  url = "https://wcs-mds.idee.es/mds",
  serviceVersion = "2.0.1",
  logger = "INFO"
)

#find the coverage
cov = WCS$capabilities$findCoverageSummaryById("mdsn_e025")

#ge…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@eblondel
Comment options

Answer selected by eblondel
Comment options

You must be logged in to vote
1 reply
@eblondel
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment