Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RESTRaster always returning error 500 for some locations #49

Open
just-ajs opened this issue Jun 28, 2023 · 3 comments
Open

RESTRaster always returning error 500 for some locations #49

just-ajs opened this issue Jun 28, 2023 · 3 comments

Comments

@just-ajs
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants