Select to view content in your preferred language

arcpy Polyline segmentAlongLine left Dangle Points

480
2
Jump to solution
07-29-2022 07:01 PM
WentaoChe
Occasional Contributor II

Hello,

I am using ArcGIS Pro 3.0 and Polyline's method: segmentAlongLine to split polylines into equal interval (1 meter). After splitting, I found that there are some dangle points left, and the distances between dangle points are very short, less than 0.0002 meters, some are even shorter, like 0.000005 meters.

I would appreciate it very much if you could tell me why it happened and how to avoid it. 

I attach the 3 shp files and the Python script tool:

1. Sample.shp

2. Sample_split.shp

3. Sample_split_Dangle_Error_Points.shp

4. #-Split-Polyline-to-1m-20220730.py

Thank you in advance,

Wentao Che

Tokyo, Japan

0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

Polyline—ArcGIS Pro | Documentation

shapefiles may not behave as expected because of the warnings.  Use a featureclass in a file geodatabase to check your results to ensure that you have a topologically correct result


... sort of retired...

View solution in original post

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

Polyline—ArcGIS Pro | Documentation

shapefiles may not behave as expected because of the warnings.  Use a featureclass in a file geodatabase to check your results to ensure that you have a topologically correct result


... sort of retired...
0 Kudos
WentaoChe
Occasional Contributor II

Dear Dan,

Thank you very much for your advice.  I converted my shp files to a featureclass under the Feature Dataset, then segmentAlongLine worked perfectly! No any dangle points left!

Thanks again,

Wentao

0 Kudos