Hi!
To tackle this, we'll need to write a Python script or ArcPy tool that interacts with the ESRI ArcGIS Pro shapefile. The core task involves reading the line features and calculating the placement of the polygon features along these lines based on the attributes, specifically [End_Photo], [Start_Photo], and [Scale].
For each line, you will calculate the spacing of polygons by dividing the total line length by [End_Photo] - [Start_Photo] + 1 and then determining the exact locations along the line where the polygons should be placed. At each location, you’ll create a four-sided polygon with the length of each side based on [Scale] x 0.225m, ensuring that the rotation of the polygon aligns with the line direction (i.e., perpendicular or parallel). You’ll need to compute the geometry using trigonometry to properly orient the polygons and ensure they’re placed at the correct start, mid, and end points along the line.
Additionally, for each new polygon, copy the existing line attributes and add the new [Photo_nu] attribute, which increments based on the [Start_Photo] value. This will require managing attribute tables and ensuring the integrity of the copied and new attributes across the generated polygons.
I am sure I can deliver high quality results before deadline. Let's get in touch and discuss more.
Looking forward to hearing from you.
Thanks