blueherongis / Heron

An add-on for Grasshopper enabling the GIS functions of GDAL in Rhino 3d
MIT License
31 stars 19 forks source link

RESTRaster always returning error 500 for some locations #49

Open just-ajs opened 1 year ago

just-ajs commented 1 year ago

I couldn't find that in arcgis documentation, but it seem like some locations always return server error 500. Is there somewhere a documentation which locations are available which ones are not?

In this case the request was:

https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export?bbox=42.9371711610155%2C16.6390468374624%2C42.9465470762845%2C16.6480933364673&bboxSR=4326&size=2048%2C1976.04494393917&imageSR=4326&format=jpg&f=image
blueherongis commented 1 year ago

It seems you are hitting the limits of the resolution for the service in that area of the world. Try either setting the resolution lower to something like 1700 (in this case) or increasing the boundary size.

https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export?bbox=42.9371711610155%2C16.6390468374624%2C42.9465470762845%2C16.6480933364673&bboxSR=4326&size=1700%2C1976.04494393917&imageSR=4326&format=jpg&f=image

image

just-ajs commented 1 year ago

Ah right yes got it now, do you know if there is any endpoint to check what is available resolution for the location? Or the best strategy is to try one resolution and then if it fails try smaller?

blueherongis commented 1 year ago

I haven't really looked into a way to check for the highest resolution with an arcgis rest endpoint. It could be possible, but I'll need to do some research. I usually start at a lower resolution, zoomed out and then start dialing it up when I settle on a boundary.