我正在将ArcGIS用于一个项目。在使用其Rest API时,我意识到坐标以空间坐标格式返回:
"rings": [
[
[
227682.63361452334,
365316.62928415462
]
]
]
代替
"rings": [
[
[
33.302915077034889,
34.917748779655412
]
]]
[我意识到我可以将其转换为lon lat,但是在某些情况下,数据集非常庞大,需要很长时间才能将其转换。
还有更好的方法吗?
请注意,您可以在请求中将outSR参数设置为4326。例如:
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'
请注意outSR = 4326参数。