-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add RESX and RESY for WCS getCoverage #113
Comments
Hi @pmlefeuvre-met can you share the WCS server you try to use? and the code you tried? thanks |
Yes, ^^
https://wcs.geonorge.no/skwms1/wcs.hoyde-dom-nhm-25833?SERVICE=WCS&REQUEST=GetCoverage&VERSION=1.0.0&COVERAGE=nhm_dom_topo_25833&CRS=EPSG:25833&BBOX=260500,6652500,261500,6653000&RESX=1&RESY=1&FORMAT=GEOTIFF
https://wcs.geonorge.no/skwms1/wcs.hoyde-dom-nhm-25833?service=WCS&version=1.0.0&coverage=nhm_dom_topo_25833&BBOX=260500,6652500,261500,6653000&CRS=EPSG:25833&format=GeoTIFF&request=GetCoverage The R code WCS <- WCSClient$new("https://wcs.geonorge.no/skwms1/wcs.hoyde-dom-nhm-25833", "1.0.0", logger = "INFO")
caps <- WCS$getCapabilities()
name <- "nhm_dom_topo_25833"
chla <- caps$findCoverageSummaryById(name, exact = T)
cov_data <- chla$getCoverage(crs = "EPSG:25833",gridbaseCRS = "EPSG:25833",
bbox=OWSUtils$toBBOX(260500,261500,6652500,6653000),
filename = "dom_25833_1.tif") |
First thing I see is that your WCS server implements up to WCS Switchinng to WCS |
Ok I now see that it uses ArcGIS WCS server. I will investigate there |
If you stick with WCS 1.0.0, you can always extend WCS <- WCSClient$new("https://wcs.geonorge.no/skwms1/wcs.hoyde-dom-nhm-25833", "1.0.0", logger = "INFO")
caps <- WCS$getCapabilities()
name <- "nhm_dom_topo_25833"
chla <- caps$findCoverageSummaryById(name, exact = T)
cov_data <- chla$getCoverage(crs = "EPSG:25833",gridbaseCRS = "EPSG:25833",
bbox=OWSUtils$toBBOX(260500,261500,6652500,6653000),
filename = "dom_25833_1.tif",
RESX = 1, RESY = 1) This will allow to reproduce the GetCoverage you did manually. This said, I will keep investigating about the above request made with WCS 2.0.1, and will use this WCS server for further tests. Let me know |
Thanks Emmanuel! I now uses your last solution that works perfectly for my use! |
Great to hear @pmlefeuvre-met! thanks for your feedback |
Hei @eblondel,
I am trying to download a WCS with getCoverage but the service I am trying to reach requires a RESX and RESY. How can I add
&RESX=1&RESY=1
to my fetching URL.Thanks for your help.
The text was updated successfully, but these errors were encountered: