The IProximityOperator::ReturnDistance method returns an Automation Error when finding the distance between a Point feature and features in a PolyLine feature class.
上次发布: August 25, 2014No Product Found
漏洞 ID 编号
NIM004240
已提交
September 18, 2006
上次修改时间
June 5, 2024
适用范围
No Product Found
找到的版本
9.1
编程语言
All
修正版本
9.2
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
Re-projecting the point to the polyline’s Coordinate System using IGeometry::Project we do not receive the error and the ReturnDistance method returns the distance between the point and polyline features. The following lines of code was used to perform the Projection: Dim geom As IGeometry Dim geom1 As IGeometry Set geom = pFeat.Shape Set geom1 = pLnFeat.Shape geom.Project geom1.SpatialReference Set pProximity = geom