Hello,
I would like to update the LineID from Start to End line continuously using Python script. Kindly have a look of image.
Regards,
Raj P
Sadly, that doesn't change the order of the geometry, upon which the ID numbers are based. The geometry objects need to be changed first
Hi Raj,
Check this;
38517 - Create sequential numbers in a field using Python in the Field Calculator
http://www.arcgis.com/home/item.html?id=6997e32c54bd40ca8ca13e1fdaf5948b
union/merge the polylines so it forms one polyline
split at vertices. Only works for segments joined at vertices without intervening nodes
Or you will have to get the pieces into a list, then (in this case), sort the polylines lexicographically (sort by X coordinates), then reassemble in that order.
Or start with the leftmost polyline, flip if necessary so that it points East, and find the next segment that shares the end node, flip if necessary, then merge the two segments... repeat with the remaining polyline segments.
Essentially, the latter is a spanning tree amongst start and endpoints, while retaining the connecting polyline.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.