[gdal-dev] Problems with ArcGIS image server and WMS minidriver

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Fri Feb 5 07:05:16 PST 2021


Hi,

I almost managed to read data from this URL but not quite
https://image.discomap.eea.europa.eu/arcgis/rest/services/GioLand/HRIM_HR_TrueColour_2018/ImageServer/exportImage?f=image&bbox=-3493783.68885884%2C3191895.64564654%2C5001886.25692533%2C11496874.31511627&size=512%2C512&imageSR=3857&bboxSR=3857&format=png8&layers=&transparent=false&time=

The service capabilities are coming from the server
https://image.discomap.eea.europa.eu/arcgis/rest/services/GioLand/HRIM_HR_TrueColour_2018/ImageServer?f=json&pretty=true

However, GDAL requests do not work for me

gdalinfo "https://image.discomap.eea.europa.eu/arcgis/rest/services/GioLand/HRIM_HR_TrueColour_2018/ImageServer?f=json&pretty=true"
or
gdal_translate "https://image.discomap.eea.europa.eu/arcgis/rest/services/GioLand/HRIM_HR_TrueColour_2018/ImageServer?f=json&pretty=true" out.xml -of WMS

The error is
ERROR 4: `C:\TEMP\file.dat' not recognized as a supported file format.
For me it seems that file.dat was never written.
BTW, how on earth I can select the temporary folder? c:\temp is not good at all for my work computer.

Then I wrote the XML file by hand by using https://github.com/OSGeo/gdal/blob/master/gdal/frmts/wms/frmt_ags_arcgisonline.xml as an example. What fails now it that GDAL is generating request as

https://image.discomap.eea.europa.eu/arcgis/rest/services/GioLand/HRIM_HR_TrueColour_2018/ImageServer/export?f=image&bbox=-3493783.68885884%2C3191895.64564654%2C5001886.25692533%2C11496874.31511627&size=512%2C512&imageSR=3857&bboxSR=3857&format=png8&layers=&transparent=false&time=

However, that server delivers data from /exportImage? , not from /export?.

Can anybody suggest a simple workaround for changing those urls to point into exportImage?


-Jukka Rahkonen-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210205/5ed6a5ab/attachment-0001.html>


More information about the gdal-dev mailing list