For multi-part lines, it would be helpful if there were a GP that could:
Create a single midpoint for the entire feature. Place the point halfway along the entire length of the line (all parts considered).
Could a GP Tool be added that creates a true midpoint for multi-part lines?
Thanks.
There is this editing tool that you may find useful: https://pro.arcgis.com/en/pro-app/latest/help/editing/create-point-features-along-a-line.htm
I haven't utilized this with multiline features, so I can't speak to exactly how those are handled, but you could try this GP Script tool and specify a percentage of 50%: https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/generate-points-along-lines....
I think you might be right, the Generate Points Along Lines tool (your second link) seems to do what I want, using By Percentage: 50.
@DanLee Feel free to close this idea.
@Bud glad that helped.
I know I've ran into issues with that GP Tool only being able to apply the same distance or percentage across every feature in a feature class. I've had times where I wanted to utilize a features attributes to vary how points are placed along a given feature. To accomplish this, I've modified the code in Link #1 below utilizing Geometry Objects. It might be worth looking at Geometry Objects and their associated methods (Link #2) when you have a chance, they can be a pretty powerful tool in conducting custom spatial analysis.
Link #1 - https://gis.stackexchange.com/questions/214162/generate-points-along-line
Link #2 - https://pro.arcgis.com/en/pro-app/latest/arcpy/classes/geometry.htm
@ScottFedak2085 Interesting. Thanks.
I had thought about that concept too: "utilize a feature's attributes to vary how points are placed along a given feature." I can see how that would be useful; I submitted it as an idea: Use value from field in Generate Points Along Lines.
It looks like the Central point x-coordinate and y-coordinate options can be used in Calculate Geometry Attributes to get the true midpoint of multi-part lines (in conjunction with an XY Event Layer).
However, I did some measuring with the measurement tool, and the point might not be exactly in the middle of the line. It might be off by a few metres. So maybe it’s not the true midpoint.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.