laptop and a wrench

漏洞

Query results for polygon layer do not contain the spatial reference information for each point in the ring.

上次发布: August 25, 2014 ArcGIS Server (.NET)
漏洞 ID 编号 NIM052326
已提交December 24, 2009
上次修改时间June 5, 2024
适用范围ArcGIS Server (.NET)
找到的版本1.1
操作系统Windows OS
操作系统版本2003
状态Will Not Be Addressed

附加信息

No Public Explanation

解决办法

To resolve this issue, you need to loop each point in the polygon rings and assign a spatial reference to it. The workaround works for the polygon with only one ring. If the polygon have multiple rings, the code doesn't work properly. There will be no errer, but return you empty buffer results.-------------------- ESRI.ArcGIS.Client.Geometry.Polygon polygon = new ESRI.ArcGIS.Client.Geometry.Polygon(); ESRI.ArcGIS.Client.Geometry.PointCollection pnts = new ESRI.ArcGIS.Client.Geometry.PointCollection(); ESRI.ArcGIS.Client.Geometry.Polygon selectedStatePolygon = (ESRI.ArcGIS.Client.Geometry.Polygon)selectedState.Geometry; int ringNm = selectedStatePolygon.Rings.Count; ObservableCollection<ESRI.ArcGIS.Client.Geometry.PointCollection> pointcoll = new ObservableCollection<ESRI.ArcGIS.Client.Geometry.PointCollection>(); for (int j = 0; j < ringNm; j++) { foreach (MapPoint pnt in selectedStatePolygon.Rings[j]) { pnt.SpatialReference = MyMap.SpatialReference; pnts.Add(pnt); } pointcoll.Add(pnts); } polygon.Rings = pointcoll; polygon.SpatialReference = MyMap.SpatialReference; Graphic graphic = new Graphic() { Symbol = CustomRainbowGradientFillSymbol, Geometry = polygon };

重现步骤

漏洞 ID: NIM052326

软件:

  • ArcGIS Server (.NET)

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项