Wednesday, 10 January 2018

Placing random line segments within polygon?


I would like to generate multiple line segments of a fixed length, a random bearing, and both segment endpoints within the polygon.See example image It's not clear from the example, but it's fine if the segments intersect each other or span the indented features as long as both endpoints are in the polygon.


I also want the attributes table to include lat/lon for each segment endpoint and the azimuth between the endpoints.



Is this possible?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...