ArcGIS Pro SDK导出的几何XML和Json

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

XML

XML 复制代码
<PolygonN xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:typens="http://www.esri.com/schemas/ArcGIS/3.1.0" xsi:type="typens:PolygonN">
<HasID>false</HasID>
<HasZ>false</HasZ>
<HasM>false</HasM>
<Extent xsi:type="typens:EnvelopeN">
<XMin>26.309292532439315</XMin>
<YMin>101.3287034164434</YMin>
<XMax>118.61051878831529</XMax>
<YMax>193.62992967231938</YMax>
</Extent>
<RingArray xsi:type="typens:ArrayOfRing">
<Ring xsi:type="typens:Ring">
<SegmentArray xsi:type="typens:ArrayOfSegment">
<Segment xsi:type="typens:CircularArc">
<FromPoint xsi:type="typens:PointN">
<X>100.59843110429217</X>
<Y>110.89923346729206</Y>
</FromPoint>
<ToPoint xsi:type="typens:PointN">
<X>100.59843110429217</X>
<Y>110.89923346729206</Y>
</ToPoint>
<CenterPoint xsi:type="typens:PointN">
<X>72.459905660377302</X>
<Y>147.47931654438139</Y>
</CenterPoint>
<IsCounterClockwise>false</IsCounterClockwise>
<IsMinor>false</IsMinor>
<IsLine>false</IsLine>
</Segment>
</SegmentArray>
</Ring>
</RingArray>
<KnownSimple>false</KnownSimple>
</PolygonN>

Json

javascript 复制代码
{
  "curveRings": [
    [
      [
        100.59843110429217,
        110.89923346729206
      ],
      {
        "a": [
          [
            100.59843110429217,
            110.89923346729206
          ],
          [
            72.459905660377302,
            147.47931654438139
          ],
          0,
          1
        ]
      }
    ]
  ]
}

椭圆

XML

XML 复制代码
<PolygonN xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:typens="http://www.esri.com/schemas/ArcGIS/3.1.0" xsi:type="typens:PolygonN">
<HasID>false</HasID>
<HasZ>false</HasZ>
<HasM>false</HasM>
<Extent xsi:type="typens:EnvelopeN">
<XMin>251.60978917628887</XMin>
<YMin>12.176580549794316</YMin>
<XMax>282.48917239337885</XMax>
<YMax>105.79047954003056</YMax>
</Extent>
<RingArray xsi:type="typens:ArrayOfRing">
<Ring xsi:type="typens:Ring">
<SegmentArray xsi:type="typens:ArrayOfSegment">
<Segment xsi:type="typens:EllipticArc">
<FromPoint xsi:type="typens:PointN">
<X>267.04948078483386</X>
<Y>105.79047954003055</Y>
</FromPoint>
<ToPoint xsi:type="typens:PointN">
<X>267.04948078483386</X>
<Y>105.79047954003055</Y>
</ToPoint>
<EllipseStd>false</EllipseStd>
<CenterPoint xsi:type="typens:PointN">
<X>267.04948078483386</X>
<Y>58.983530044912435</Y>
</CenterPoint>
<Rotation>1.5707963267948966</Rotation>
<MinorMajorRatio>0.3298589584470854</MinorMajorRatio>
<IsCounterClockwise>true</IsCounterClockwise>
<IsMinor>false</IsMinor>
</Segment>
</SegmentArray>
</Ring>
</RingArray>
<KnownSimple>false</KnownSimple>
</PolygonN>

Json

javascript 复制代码
{
	"curveRings":
	[
		[
			[267.04948078483386,105.79047954003055],
			{
			"a":
				[
					[267.04948078483386,105.79047954003055],
					[267.04948078483386,58.983530044912435],
					0,
					0,
					1.5707963267948966,
					46.806949495118111,
					0.3298589584470854
				]
			}
		]		
	]
}

要素导出的Json

javascript 复制代码
{
  "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。

相关推荐
GIS思维7 小时前
ArcGIS定义投影与投影的区别(数据和底图不套合的原因和解决办法)
arcgis·gis·地理信息·arcgis坐标系·动态投影
阮少年、10 小时前
ArcGIS Pro的arpx项目在ArcGIS Server中发布要素服务(FeatureServer)
arcgis·arcgis server·gis服务发布·要素服务
黎明晓月13 小时前
PostgreSQL提取JSON格式的数据(包含提取list指定索引数据)
postgresql·json·list
圆弧YH20 小时前
Arcgis 地图制作
arcgis
sinat_3842410920 小时前
使用 cnpm 安装 Electron,才是正确快速的方法
arcgis
心死翼未伤21 小时前
python从入门到精通:pyspark实战分析
开发语言·数据结构·python·spark·json
Mephisto.java1 天前
【大数据学习 | flume】flume Sink Processors与拦截器Interceptor
大数据·sql·oracle·sqlite·json·flume
中科GIS地理信息培训1 天前
ArcGIS Pro 3.4新功能1:唯一值符号化增加复选框,可在内容窗格和布局视图中控制类别的可见性。
arcgis·arcgis pro
黄鹂绿柳1 天前
学了Arcgis的水文分析——捕捉倾泻点,河流提取与河网分级,3D图层转要素失败的解决方法,测量学综合实习网站存着
arcgis
科研online1 天前
ArcGIS计算水库库容量
arcgis·学习方法