laptop and a wrench

Bogue

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

Dernière publication: August 25, 2014 No Product Found
Numéro d’ID de bogue NIM004240
EnvoiSeptember 18, 2006
Dernière modificationJune 5, 2024
S’applique àNo Product Found
Version trouvée9.1
Langue du programmeAll
Version de correction9.2
StatutFixed

Solution de contournement

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

Étapes pour reproduire

ID de bogue: NIM004240

Logiciel:

  • No Product Found

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement