[gdal-dev] gdal wms

jratike80 jukka.rahkonen at maanmittauslaitos.fi
Mon Aug 6 14:18:37 PDT 2018


Idan Miara wrote
> How can I retrieve the raster size for a layer that I don't have a backend
> raster to use with gdalinfo? The size doesn't appear in the
> GetCapabilities
> of the wms service.

Hi,

In WMS 1.3.0 it is possible, but not necassary, to include resx and resy in
GetCapabities.

<BoundingBox CRS="EPSG:26986"
minx="189000" miny="834000" maxx="285000" maxy="962000" resx="1" resy="1" />

If they are included you can use them for calculating the sixe of the layer
as pixels. If resx and resy are missing you can just make a good guess about
the native resolution of the layer.

-Jukka Rahkonen-



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list