[gdal-dev] C++ API for WCS: GetCapabilities and GDALOpen()
Even Rouault
even.rouault at spatialys.com
Thu Jul 21 07:00:39 PDT 2016
Odd-Ragnar,
> Does GDAL fetch this for me in
> some way, or do I have to parse the result from GetFeatureInfo in a
> separate routine?
--> you meant GetCapabilities, not GetFeatureInfo right ?
>
> Shouldn't the first call to GDALOpen() get the capabilitis for a given WCS,
> like it does for WFS?
your observations are true. The WCS driver doesn't support the GetCapabilities
request currently. If it would, it should likely return the various available
coverages as subdatasets, as the WMS driver does.
$ gdalinfo "WMS:http://demo.opengeo.org/geoserver/gwc/service/wms?"
Driver: WMS/OGC Web Map Service
Files: none associated
Size is 512, 512
Coordinate System is `'
Subdatasets:
SUBDATASET_1_NAME=WMS:http://demo.opengeo.org/geoserver/gwc/service/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=og%3Astreams&SRS=EPSG:900913&BBOX=-1.15841845090625E7,5479006.186718751,-1.1505912992109375E7,5557277.703671876
SUBDATASET_1_DESC=streams
SUBDATASET_2_NAME=WMS:http://demo.opengeo.org/geoserver/gwc/service/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=og%3Aarchsites&SRS=EPSG:4326&BBOX=-104.0625,44.296875,-103.359375,45.0
SUBDATASET_2_DESC=archsites
[...]
Place for improvement for those who want to contribute code or funding.
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list