Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a network dataset with roads and junctions. I am wondering what class I can use in arcpy to extract FromJunctionId and the ToJunctionId for each road segment in the network dataset.

Thanks.

share|improve this question
    
Does not the road segment a polyline? –  Emi Jan 19 '13 at 13:59
add comment

2 Answers

You need to create topology rules where input feature class operations equal output feature class operations where you are creating true nodes and filtering out false node. A feature similar is point intersection, you could also create a convex hull to incorporate your to and from edges, (not segments) where the true node is all positive and negative edge (to-from) pairs contained by points following programmetric rules centered on a central point within the the topologic figure which would function as the lat lon of the true node. A secondary operation could associate street names or classes with associated pairs as a name feature class and could be programmaticaly linked to create an routing association using either and nor loops associating names and node associations for the purpose of determining the two and from segments or nodes.

points and lines and value schemas would seem usefull as a more specific answer to the way your question is posed.

share|improve this answer
add comment
  1. get polyline from road feature
  2. read polyline's firstPoint and lastPoint

these first point and last point are the toJunctionId and fromJunctionId. To know more about polyline properties you may read this

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.