laptop and a wrench

Bug

The IProximityOperator::ReturnDistance method returns an Automation Error when finding the distance between a Point feature and features in a PolyLine feature class.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM004240
SubmittedSeptember 18, 2006
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.1
Program languageAll
Version Fixed9.2
StatusFixed

Workaround

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

Steps to Reproduce

Bug ID: NIM004240

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options