Reputation: 1052
I am using ArcGIS for a project. While using its Rest API, I realized that the coordinates are returning in a spatial coordinates format:
"rings": [
[
[
227682.63361452334,
365316.62928415462
]
]
]
instead of
"rings": [
[
[
33.302915077034889,
34.917748779655412
]
]]
I realized that I can convert those to lon lat but in some occasions the data set is huge, taking ages to convert them.
Is there a better way to do it?
Upvotes: 0
Views: 815
Reputation: 1052
Please note that you can set outSR param to 4326 in your request. For example:
curl --location --request GET 'https://yourARCGISserverDomain/arcgis/rest/services/National/General_Search/MapServer/12/query?f=json&outFields=*&outSR=4326&returnGeometry=true&where=1=1'
Note the outSR=4326 parameter.
Upvotes: 1