[Qgis-user] Passing parameters to ArcGIS REST Server Connections

Pedro Venâncio pedrongvenancio at gmail.com
Thu Sep 15 15:22:20 PDT 2022


Hi all,

I'm trying to load Sentinel-2 images from ESRI Living Atlas, and it works
just fine with the default rendering rule, using

https://sentinel.arcgis.com/arcgis/rest/services/Sentinel2/ImageServer

But to use another color composite, it needs an additional parameter
(renderingRule):

&renderingRule={"rasterFunction":"Color Infrared with DRA"}

to get something like this:

https://sentinel.arcgis.com/arcgis/rest/services/Sentinel2/ImageServer/exportImage?f=image&bandIds=&renderingRule=%7B%22rasterFunction%22%3A%22Color%20Infrared%20with%20DRA%22%7D&bbox=-836244.2018886498%2C4956831.174231473%2C-723346.7111115967%2C4997342.799222562&imageSR=102100&bboxSR=102100&size=1477%2C530&token=.
..

The problem is that the additional parameter cannot be passed to ArcGIS
REST Server Connection URL
https://sentinel.arcgis.com/arcgis/rest/services/Sentinel2/ImageServer?renderingRule={"rasterFunction":"Color
Infrared with DRA"}

because it always adds "/exportImage" to the end of the connection URL:

https://sentinel.arcgis.com/arcgis/rest/services/Sentinel2/ImageServer?renderingRule=%7B%22rasterFunction%22:%22Color
Infrared with DRA%22%7D/exportImage&bbox=...

Any hint to overcome this?

Thanks!

Best regards,
Pedro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20220915/91c73686/attachment.htm>


More information about the Qgis-user mailing list