[gdal-dev] GDAL WMTS Driver - How do you control the Tile Matrix Set's Tile Level?
esacree
esacree at knology.net
Mon Nov 7 08:32:34 PST 2016
I am trying to generate a WMTS Service Request XML file in C++ code for the
GDAL_WMTS driver in GDAL 2.1. Just using the gdal_translate command to
generate a working sample XML file for debugging the C++ code.
Are there any GDAL_WMTS driver XML tag parameters to request a specific Tile
Level within the TileMatrixSet or specify the output image size? The
server has one TileMatrixSet with 20 levels. Since the server is trying to
send back 4GB of data, it must be returning the most detailed level.
The WMS example shows TileLevel and SizeX, SizeY image parameters. The
WMTS example XML file does not show these DataWIndow XML parameters. Can
they be used with GDAL_WMTS driver in the GDAL XML Service Request file? Or
is there a different way to limit the tile level and output image size for
WMTS requests?
gdal_translate is used for debugging here. The command is similar to the
example at the bottom of http://www.gdal.org/frmt_wmts.html.
gdal_translate
"WMTS:http://basemap.nationalmap.gov/arcgis/rest/services/USGSShadedReliefOnly/MapServer/wmts/1.0.0/WMTSCapabilities.xml,layer=USGSShadedReliefOnly"
wmts.xml -of WMTS
Thanks!
Elaine
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GDAL-WMTS-Driver-How-do-you-control-the-Tile-Matrix-Set-s-Tile-Level-tp5294530p5294667.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
More information about the gdal-dev
mailing list