laptop and a wrench

Error

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

Última publicación: August 25, 2014 No Product Found
Número de ID del error NIM004240
EnviadoSeptember 18, 2006
Última modificaciónJune 5, 2024
Relacionado conNo Product Found
Versión encontrada9.1
Lenguaje del programaAll
Versión corregida9.2
EstadoFixed

Solución alternativa

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

Pasos para reproducir

ID del error: NIM004240

Software:

  • No Product Found

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga