It would be extremely beneficial to add a {Min_Last_Segment_Length} parameter to the arcpy.management.GeneratePointsAlongLines tool when generating points along road centerlines.
The enhanced tool syntax would look like this:
arcpy.management.GeneratePointsAlongLines(Input_Features, Output_Feature_Class, Point_Placement, {Distance}, {Percentage}, {Include_End_Points}, {Add_Chainage_Fields}, {Min_Last_Segment_Length})
Our client, a major car navigation map provider in Japan, strongly requests this functionality.
Consider a scenario where we have a road centerline that is 50.05 meters long, and we set the interval to 5 meters. We typically digitize a point (or vertex) every 2 to 4 meters along the centerlines. Our client does not require a point at the 50.0-meter mark in order to avoid creating a short segment of 0.05 meters. Instead, they prefer treating the last 5.05 meters as a single section while setting Include_End_Points = 'END_POINTS'. In this way, we can significantly reduce the number of vertices for a dataset that covers all roads in Japan.
We would greatly appreciate it if these enhancements could be considered for inclusion in the next release.
Wentao Che
Tokyo, Japan