Português
Bug Number NIM000726
Submitted Jan 05, 2006
Modified Jun 11, 2020
Severity Medium
Applies To ArcGIS for Desktop
Version Found No Version Found
Prog Language C#
Server Platform
Client Platform
Database N/A
Locale N/A
Status Implemented
Version Fixed 9.2
SP Fixed N/A

Bug NIM000726

Synopsis

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


Additional Information

N/A


Alternate Solution

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());