I am using ArcGIS 9.3. I have a Polyline Feature class with attribute field as Street_Name. I want to Check if for say Street_Name='My Street' (say around 10 Features from the layer) all the polylines are Connected to each other. Edges in the Layer can be complex edge with multiple vertices. Any idea ?
This can be achieved at least to some extent by creating a geometric network in a geodatabase (requires ArcEditor license) and then using Finding connected features on the Utility Network Analyst toolbar.
Otherwise you might like developing an Add-in (Python add-in, for instance) to create a button in the GUI and use it when you have selected the features and want to check their connectivity.
May be you can use following logic to find connected polylines:
1. create two dictionary: ToPointDictionary and FromPointDictionary 2. For ToPointDictionary, KeyValue = Polyline.ToPoint and for FromPointDictionary, KeyValue = Polyline.FromPoint 3. DataValue = List<Polyline> 4. /*polyline1 = ToPointDictionary[key] and polyline2 = FromPointDictionary[key], both keys are same*/ If (FromPointDictionary's keyValue == ToPointDictionary's KeyValue) //Decision = polyline1 is connected with polyline2 like polyline2 is the child and polyline1 is parent