Projecting a point using ‘WGS 1984 UPS North’ throws error, "Operation attempted on empty geometry", when a layer is present in the map.
上次发布: August 25, 2014No Product Found
漏洞 ID 编号
NIM000726
已提交
January 5, 2006
上次修改时间
June 5, 2024
适用范围
No Product Found
找到的版本
9.1
编程语言
C#
修正版本
9.2
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
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());