[gdal-dev] unable to make a valid TMS xml file
Even Rouault
even.rouault at mines-paris.org
Tue Oct 1 11:49:43 PDT 2013
Le mardi 01 octobre 2013 14:06:20, Jean-Roc Morreale a écrit :
> Hi,
>
> I'm trying to use the TMS minidriver, my xml file is based on the OSM's
> example and the data is an output of gdal2tiles. I've not been able to
> use it with gdal 1.10 :
>
> # gdalinfo "D:\MyFolder\My_File.xml"
> ERROR 4 : 'D:\MyFolder\My_File.xml' not recognized as a supported file
> format.
> gdalinfo failed - unable to open 'D:\MyFolder\My_File.xml'.
>
> Here is the content of the file :
>
> <GDAL_WMS>
> <Service name="TMS">
>
> <ServerUrl>file://d:/MyFolder/tiles/${z}/${x}/${y}.png</ServerUrl>
> </Service>
> <DataWindow>
> <UpperLeftX>156542.969</UpperLeftX>
> <UpperLeftY>6653076.172</UpperLeftY>
> <LowerRightX>469628.906</LowerRightX>
> <LowerRightY>6457397.461</LowerRightY>
> <TileLevel>17</TileLevel>
> <TileCountX>1</TileCountX>
> <TileCountY>1</TileCountY>
> <YOrigin>top</YOrigin>
> </DataWindow>
> <Projection>EPSG:3857</Projection>
> <BlockSizeX>256</BlockSizeX>
> <BlockSizeY>256</BlockSizeY>
> <BandsCount>4</BandsCount>
> <Cache />
> </GDAL_WMS>
>
> Could you please tell me where the error ?
Jean-Roc,
This works for me (at least gdalinfo reports a valid dataset). Make sure that
<GDAL_WMS> is found at the very beginning of the file. No space, newline or any
character before.
Even
--
Geospatial professional services
http://even.rouault.free.fr/services.html
More information about the gdal-dev
mailing list