[gdal-dev] GDAL CONFIG
Michał Kowalczuk
michkowalczuk at gmail.com
Tue Dec 17 09:49:23 PST 2024
Dear GDAL colleagues,
do you have any idea why the first method fails:
*set GDAL_HTTP_USERPWD="user:pass"*
*gdal_translate -srcwin 0 0 1073696614, 1073741824 -outsize 512 512
"WMS:https://maps.lantmateriet.se/topowebb/wms/v1?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=topowebbkartan&SRS=epsg:3006&BBOX=-1.19998e+06,4.69998e+06,2.59988e+06,8.5e+06
<https://maps.lantmateriet.se/topowebb/wms/v1?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=topowebbkartan&SRS=epsg:3006&BBOX=-1.19998e+06,4.69998e+06,2.59988e+06,8.5e+06>"
tile1.png*
but the second works?
*gdal_translate -srcwin 0 0 1073696614, 1073741824 -outsize 512 512
"WMS:https://maps.lantmateriet.se/topowebb/wms/v1?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=topowebbkartan&SRS=epsg:3006&BBOX=-1.19998e+06,4.69998e+06,2.59988e+06,8.5e+06
<https://maps.lantmateriet.se/topowebb/wms/v1?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=topowebbkartan&SRS=epsg:3006&BBOX=-1.19998e+06,4.69998e+06,2.59988e+06,8.5e+06>"
tile1.png --config GDAL_HTTP_USERPWD "user:pass"*
(windows, GDAL 3.9.2, anaconda prompt)
Regards,
Michał Kowalczuk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20241217/ef174a41/attachment.htm>
More information about the gdal-dev
mailing list