Deutsch
Bug-Nummer NIM000726
Erzeugt am Jan 05, 2006
Modified Jun 11, 2020
Schweregrad Medium
Übernehmen für ArcGIS for Desktop
Gefundene Version No Version Found
Progr.-Sprache C#
Server-Plattform
Client-Plattform
Datenbank n. z.
Gebietsschema n. z.
Status Implemented
Behoben in Version 9.2
SP Fixed N/A

Bug NIM000726

Zusammenfassung

Projecting a point using ‘WGS 1984 UPS North’ throws error, "Operation attempted on empty geometry", when a layer is present in the map.


Zusätzliche Informationen

n. z.


Alternative Lösung

Using the forward method on the IProjectedCoordinateSystem can be used to get the desired results.
ISpatialReference pUPS = pSpRefFactory.CreateProjectedCoordinateSystem(32661);

WKSPoint wksPnt = new WKSPoint();
wksPnt.X = -132;
wksPnt.Y = 90;

Debug.WriteLine("Pre Conversion : " + wksPnt.X.ToString() + " , " + wksPnt.Y.ToString());
((IProjectedCoordinateSystem)pUPS).Forward(1,ref wksPnt);
Debug.WriteLine("Post Conversion : " + wksPnt.X.ToString() + " , " + wksPnt.Y.ToString());