'THIS IS A SNIPPET OF CODE SHOWING HOW TO GET END POINT COORDINATES TO COMPARE CONNECTIVITY OF A LINE FEATURE (STREET).
Dim pFeature As IFeature
Dim pFeatCursor As IFeatureCursor
Dim pGeometry As IGeometry
Dim pGeoCollection As IGeometryCollection
Dim pSegColl As ISegmentCollection
Dim pPath As IPath
Dim intGeoCollCounter, iCollectCnt As Integer
If pFeature.Shape.GeometryType = esriGeometryType.esriGeometryPolyline Then
pGeometry = pFeature.Shape
pGeoCollection.AddGeometryCollection(pGeometry)
pFeature = pFeatCursor.NextFeature
intGeoCollCounter = intGeoCollCounter + 1
End If
Loop
For intGeoCollCounter = 0 To pGeoCollection.GeometryCount - 1
pPath = pGeoCollection.Geometry(intGeoCollCounter)
Debug.Print("Geometry Path Coll #" & intGeoCollCounter.ToString & " FromPoint X-Coord=" & pPath.FromPoint.X.ToString & " Y-Coord =" & pPath.FromPoint.Y.ToString)
Debug.Print("Geometry Path Coll #" & intGeoCollCounter.ToString & " ToPoint X-Coord=" & pPath.ToPoint.X.ToString & " Y-Coord =" & pPath.ToPoint.Y.ToString)
Next
'other code still to be developed to compare FromPoint and ToPoint Coordinates for each segment to verify connectivity.