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 Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動