Getting values from attribute table and inserting another table

349
0
10-06-2012 04:16 PM
AlperSen1
New Contributor
I have line feature class of a river network and ???FromTo??? table. Lines are dissolved so they are not segmented from junctions. I try to get the connectivity of network and I need to write a Python script in ArcGIS to do following:

1.Begin from the first row in Hydro feature class attribute table and get its ID
2.Insert this ID into ???From??? field in ???FromTo??? table
3.Get ID of line which intersects first line (e.g. second line intersects first line)
4.Inset ID into ???To??? field in "FromTo" table

For second loop

1.Get ID of second row in Hydro feature class attribute table
2.Insert this ID into ???From??? field in ???FromTo??? table
3.Get IDs of lines which intersect second line (e.g. first and third lines intersect second line)
4.Inset IDs into ???To??? field in "FromTo" table

So on???

Perhaps, you help me with a Python code... 


[ATTACH=CONFIG]18242[/ATTACH]
Tags (2)
0 Kudos
0 Replies