Select to view content in your preferred language

REST API query return units not as expected

503
2
Jump to solution
12-14-2021 01:19 PM
alancapuano
New Contributor

Hi everyone

I'm running a query against the service below, but although I'm expecting the return coordinates to be in 2 digits given the spatial reference (lat-long), I'm getting ones like the following:


Lat: -8204811.26192143
Long: -3987590.02305023


Lat: -3606776.02627643
Long: 501790.162731707
Spatial Reference: 102100 (3857)

And this is the URI for reference.

https://services8.arcgis.com/xp2JaQPz1Q5vuCBc/arcgis/rest/services/BRASIL_dnit/FeatureServer/0

Thanks

Alan

 

0 Kudos
1 Solution

Accepted Solutions
AnthonyRyanEQL
Regular Contributor

Alan,

The spatial reference isn't geographic. It might be labelled as LatLng but it's XY for Web Mercator. You need to use the outSR parameter to specify the coordinates in geographic of your choosing.

Regards

View solution in original post

0 Kudos
2 Replies
AnthonyRyanEQL
Regular Contributor

Alan,

The spatial reference isn't geographic. It might be labelled as LatLng but it's XY for Web Mercator. You need to use the outSR parameter to specify the coordinates in geographic of your choosing.

Regards

0 Kudos
alancapuano
New Contributor

thanks!

0 Kudos