I have line feature class of a river network and “FromTo” table. Lines are dissolved so they are not segmented from junctions. I need to write a Python script in ArcGIS to do following:
- Begin from the first row in Hydro feature class attribute table and get its ID
- Insert this ID into “From” field in “FromTo” table
- Get ID(s) of line(s) which intersect(s) first line (e.g. second line intersect first line)
- Inset ID into “To” field in FromTo table
For second loop
Get ID of second row in Hydro feature class attribute table
Insert this ID into “From” field in “FromTo” table
Get IDs of lines which intersect second line (e.g. first and third lines intersect second line)
Inset IDs into “To” field in FromTo table
So on…
Perhaps, you show a different way in order to get the same result by Python
No comments:
Post a Comment