On Mon, 14 Feb 2022, Elena Ruiz wrote:
Hello, I'm trying to download a WMS image using gdla_translate from a server in
Sweden:
http://kartor.stockholm.se/bios/wms/app/baggis/web/WMS_STHLM_ORTOFOTO_2020,
with EPSG:3011 (attached xml ) , but it returns me this error, I've searched
the internet, but I can't find any entry that refers to it, could someone tell
me what this error means and how I could solve it, thanks
gdal_translate -of JPEG "C:\Users\elena\AppData\Local\Temp\tmpnuevo.xml"
"C:\Users\elena\AppData\Local\Temp\prueba.jpg"
Input file size is 766, 577
0ERROR 1: GDALWMS: The server returned exception code 'InvalidTile': Width(254)
differs from tile width(256)
ERROR 1: C:\Users\elena\AppData\Local\Temp\tmpnuevo.xml, band 1: IReadBlock
failed at X offset 0, Y offset 0: GDALWMS: The server returned exception code
'InvalidTile': Width(254) differs from tile width(256)
If I change SizeX and SizeY to be multiples of 256 (BlockSizeX/Y)
< <SizeX>766.5</SizeX>
< <SizeY>577.5</SizeY>
---
<SizeX>768</SizeX>
<SizeY>512</SizeY>
then I get a picture.
However this probably changes the scale in ways you don't want, so the
Uppper/LowerLeft/Right will need adjusting.
--
Andrew C. Aitchison Kendal, UK
and...@aitchison.me.uk
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev