Hot answers tagged data-management
There are a couple of solutions open to you, which spring to mind. The simplest is to use ET-GeoTools and select the 'Split in all Vertices' tool. Another option would be to script a process to iterate over the vertices of each line and assemble a new feature class from the bits.
I've put together some code below which seems to create single segment lines from polyline (which can be multipart) feature classes while retaining their attributes. I recommend that you run it against a small test dataset or two first, and if it seems to do what you want, then comment out or remove the print statements to gain some performance. If you add ...
There is only one way to efficiently do this that I know of. Load the replica database fields into a dictionary using a searchcursor with the GlobalID as the dictionary key, then loop through a searchcursor on the origin database and attempt to retrieve the GlobalID dictionary key that matches each record. Set up four counters: count, added, deleted, and ...
Create a field with the order they are supposed to be in, then input that field into the "sort field" option.
One possible reason for your error could be the fact that your edit is not saved when you compute the full length. Otherwise you should have the new length and the new "end" from your script. If this is not the case and you want to get rid of your extra vertices (because your script is based on a count of the vertices, for instance), you can use simplify ...
Only top voted, non community-wiki answers of a minimum length are eligible