I have shapefile containing polyline and I want to specify bends, i.e.:
I was to use arcpy.SplitLine_management to factorize polyline and then count every angle with numpy module, using dotproduct and linalg.norm. But maybe counting azimuths between succeeding points would be better? Only goal's achievement matters.
Both all-encompassing view and individual steps in script would be invaluable for me.
أكثر...
- factorize polyline into vectors
- measure an angle between consequent vectors
- consider each angle as concave or convex; let's assume concave angle receives plus sign, while convex angle gets minus, as shown below:
4.join plus signs and minus signs as below:
and, eventually, I want to see it, e.i. create polygons in the introduced way.
I was to use arcpy.SplitLine_management to factorize polyline and then count every angle with numpy module, using dotproduct and linalg.norm. But maybe counting azimuths between succeeding points would be better? Only goal's achievement matters.
Both all-encompassing view and individual steps in script would be invaluable for me.
أكثر...