ArcGIS Pro SDK导出的几何XML和Json

本博主会持续更新关于ArcGIS Pro SDK的相关内容,请读者关注一下

XML


false
false
false

26.309292532439315
101.3287034164434
118.61051878831529
193.62992967231938






100.59843110429217
110.89923346729206


100.59843110429217
110.89923346729206


72.459905660377302
147.47931654438139

false
false
false




false

Json

{
  "curveRings": [
    [
      [
        100.59843110429217,
        110.89923346729206
      ],
      {
        "a": [
          [
            100.59843110429217,
            110.89923346729206
          ],
          [
            72.459905660377302,
            147.47931654438139
          ],
          0,
          1
        ]
      }
    ]
  ]
}

椭圆

XML


false
false
false

251.60978917628887
12.176580549794316
282.48917239337885
105.79047954003056






267.04948078483386
105.79047954003055


267.04948078483386
105.79047954003055

false

267.04948078483386
58.983530044912435

1.5707963267948966
0.3298589584470854
true
false




false

Json

{
	"curveRings":
	[
		[
			[267.04948078483386,105.79047954003055],
			{
			"a":
				[
					[267.04948078483386,105.79047954003055],
					[267.04948078483386,58.983530044912435],
					0,
					0,
					1.5707963267948966,
					46.806949495118111,
					0.3298589584470854
				]
			}
		]		
	]
}

要素导出的Json

{
  "displayFieldName": "",
  "fieldAliases": {
    "字符串字段": "字符串字段",
    "OBJECTID": "OBJECTID",
    "Shape_Length": "Shape_Length",
    "Shape_Area": "Shape_Area"
  },
  "geometryType": "esriGeometryPolygon",
  "spatialReference": {
    "wkid": 102100,
    "latestWkid": 3857
  },
  "fields": [
    {
      "name": "字符串字段",
      "type": "esriFieldTypeString",
      "alias": "字符串字段",
      "length": 255
    },
    {
      "name": "OBJECTID",
      "type": "esriFieldTypeOID",
      "alias": "OBJECTID"
    },
    {
      "name": "Shape_Length",
      "type": "esriFieldTypeDouble",
      "alias": "Shape_Length"
    },
    {
      "name": "Shape_Area",
      "type": "esriFieldTypeDouble",
      "alias": "Shape_Area"
    }
  ],
  "features": [
    {
      "attributes": {
        "字符串字段": null,
        "OBJECTID": 1,
        "Shape_Length": 1636200.7474000081,
        "Shape_Area": 162473325914.95126
      },
      "geometry": {
        "rings": [
          [
            [
              12784999.967099998,
              4750538.0075000003
            ],
            [
              13263682.9727,
              4750538.0075000003
            ],
            [
              13263682.9727,
              4411120.6393999979
            ],
            [
              12784999.967099998,
              4411120.6393999979
            ],
            [
              12784999.967099998,
              4750538.0075000003
            ]
          ]
        ]
      }
    }
  ]
}

由此看出几何导出的Json只是要素导出Json的其中一部分。所以工具箱中的Json转要素是不适用于几何的Json。

你可能感兴趣的:(arcgisprosdk,arcgis,xml,json,arcgisprosdk)