[英]How can I query latitude and longitude in esri ArcGIS rest API instead of spatial coordinates?
I am using ArcGIS for a project.我正在为一个项目使用 ArcGIS。 While using its Rest API, I realized that the coordinates are returning in a spatial coordinates format:在使用它的 Rest API 时,我意识到坐标以空间坐标格式返回:
"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.我意识到我可以将它们转换为 lon lat,但在某些情况下,数据集很大,需要很长时间才能转换它们。
Is there a better way to do it?有更好的方法吗?
Please note that you can set outSR param to 4326 in your request.请注意,您可以在请求中将 outSR 参数设置为 4326。 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.注意 outSR=4326 参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.