laptop and a wrench

不具合

Casting errors with coordinate or geometry types to IList in the ArcGIS Mobile API.

最後に公開された状態: August 25, 2014 ArcGIS Runtime for Windows Mobile
不具合 ID 番号 NIM071210
送信されましたAugust 2, 2011
最終更新日June 5, 2024
適用対象ArcGIS Runtime for Windows Mobile
見つかったバージョン10.0
プログラム言語All
ステータスWill Not Be Addressed

参考情報

Coordinates should be used with a CoordinateCollection object

対処法

private void map1_MouseDoubleClick(object sender, MapMouseEventArgs e) { ESRI.ArcGIS.Mobile.Geometries.Point pointA = new ESRI.ArcGIS.Mobile.Geometries.Point(e.MapCoordinate.X, e.MapCoordinate.Y); //IList<Coordinate> coordList = new IList<Coordinate>(); //throws error cannot create instance of abstract class or interface // Workaround /////// Type baseListType = typeof(List<>); Type listType = baseListType.MakeGenericType(typeof(Coordinate)); var list = (IList<Coordinate>)Activator.CreateInstance(listType); list.Add(pointA.Coordinate); IList<string> spatialCoordList = map1.SpatialReference.ToDecimalDegree(5, list); string coordStr = spatialCoordList[0]; }

再現の手順

不具合 ID: NIM071210

ソフトウェア:

  • ArcGIS Runtime for Windows Mobile

バグのステータスが変更されたときに通知を受け取る

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

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

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

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

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

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