【问题标题】:How can I query latitude and longitude in esri ArcGIS rest API instead of spatial coordinates?如何在 esri ArcGIS REST API 中查询经纬度而不是空间坐标?
【发布时间】:2020-08-28 12:46:44
【问题描述】:

我正在为一个项目使用 ArcGIS。在使用它的 Rest API 时,我意识到坐标以空间坐标格式返回:

        "rings": [
            [
                [
                    227682.63361452334,
                    365316.62928415462
                ]
         ]
         ]

而不是

        "rings": [
            [
                [
                    33.302915077034889,
                    34.917748779655412
                ]
       ]]

我意识到我可以将这些转换为经纬度,但在某些情况下,数据集很大,需要很长时间才能转换它们。

有没有更好的方法?

【问题讨论】:

    标签: rest arcgis esri arcgis-js-api arcgis-server


    【解决方案1】:

    请注意,您可以在请求中将 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 参数。

    【讨论】:

      猜你喜欢
      • 2013-06-23
      • 2012-02-06
      • 2019-04-11
      • 2015-02-20
      • 1970-01-01
      • 1970-01-01
      • 2015-03-17
      • 1970-01-01
      • 2012-07-15
      相关资源
      最近更新 更多