中文
漏洞编号 NIM000726
已提交 Jan 05, 2006
Modified Jun 11, 2020
严重性 Medium
应用于 ArcGIS for Desktop
找到的版本 No Version Found
程序语言 C#
服务器平台
客户端平台
数据库 N/A
区域设置 N/A
状态 Implemented
修正版本 9.2
SP 修复 N/A

漏洞 NIM000726

摘要

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


附加信息

N/A


备用解决方案

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