laptop and a wrench

Bug

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

Zuletzt veröffentlicht: August 25, 2014 ArcGIS Server (.NET)
Bug-ID-Nummer NIM052326
EingereichtDecember 24, 2009
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS Server (.NET)
Gefunden in Version1.1
BetriebssystemWindows OS
Betriebssystemversion2003
StatusWill Not Be Addressed

Zusätzliche Informationen

No Public Explanation

Workaround

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 };

Schritte zur Reproduzierung

Bug-ID: NIM052326

Software:

  • ArcGIS Server (.NET)

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln