geoblaze icon indicating copy to clipboard operation
geoblaze copied to clipboard

Support for WMS layers

Open theoway opened this issue 3 years ago • 4 comments

Is your feature request related to a problem? Please describe. There is no documented way to use geoblaze with WMS. This is a very important use case as raster data is generally large in nature and usually served through WMS.

Describe the solution you'd like One should be able to use geoblaze with WMS. Instead of passing the file url, one can pass the WMS url and get results.

Describe alternatives you've considered No alternatives considered yet. Looking for some way to do stuff on client-side, if geoblaze can deal with WMS, that'd be awesome.

Additional context GetFeatureInfo can help to get actual pixel values. This can be integrated into the code.

theoway avatar Sep 01 '22 20:09 theoway

Update: GetFeatureInfo is not a good approach. WCS could be integrated with Geoblaze maybe.

theoway avatar Sep 28 '22 17:09 theoway

Hi, @theoway . Thanks for pushing this discussion forward. I have to think about it more before responding more substantively, but just wanted to say thank you :-)

DanielJDufour avatar Sep 28 '22 17:09 DanielJDufour

fwiw @theoway, I was able to use geotiff data from a WMS GetMap request with the library:

https://io.apps.fao.org/geoserver/wms/GSOCSEQ/SOCS/v2?srs=EPSG:3857&dim_socsp=SSM1&identifiers=GSOCSEQ:socs&format=image/geotiff&exceptions=application/vnd.ogc.se_xml&service=WMS&version=1.1.1&request=GetMap&layers=SOC_SU&bbox=-5322463.153553393,-2035059.4410645328,-5165920.119625352,-1878516.4071364924&width=256&height=256"

computing stats from a derived visualisation like this is less desirable of course, because you have to map the colorized values back to actual values. some WMS servers allow requesting unstyled data, but this one did not.

I was also able to use geotiff data from a WCS URL using GetCoverage that seemed to be the even more raw source data. I think I may have accidentally brought down the FAO WCS with this query so please be careful:

https://io.apps.fao.org/geoserver/wcs?service=WCS&version=1.0.0&crs=EPSG:3857&coverage=GSOCSEQ:socs&request=GetCoverage&bbox=-5322463.153553393,-2035059.4410645328,-5165920.119625352,-1878516.4071364924&format=image/tiff&height=256&width=256&RESPONSE_CRS=EPSG:4326"

(try making the bounding box smaller if this one is very slow)

acao avatar Apr 20 '23 16:04 acao

Hi, @acao . Thanks for pushing this forward. GeoBlaze uses georaster to parse any urls, so I'm wondering if it would make sense to add WCS support to georaster?

DanielJDufour avatar Apr 21 '23 00:04 DanielJDufour