POST

Hi Dan, Thank you for your previous help and the tips you have provided but I need further help. Below is what I have: A function that returns the maximum length of each of the rectangular polygons as a list. To be used as a reference edge/segment. A function that returns the minimum length of each of the rectangular polygons as a list. To be used to construct length of a perpendicular edge. A function that gets the coordinates of the endpoints of a polyline. What would be an ideal approach to calculate the perpendicular offset points? Would I need to export/copy the longest edge of the polygon to a new FeatureClass before proceeding? Any leads on a possible workflow would be very helpful.
... View more
02252020
05:04 PM

0

0

36

POST

Resolved seeing angles were measured clockwise. Thanks to Dan.
... View more
02242020
11:49 PM

0

0

199

POST

Absolutely spot on, Dan. This was my first thought line and I could get the lengths of the polygon sides using: arcpy . MinimumBoundingGeometry_management ( inFC , outFC , geometry_type = "RECTANGLE_BY_AREA" , group_option = "NONE" , mbg_fields_option = True ) The length and even orientation were computed after executing the above with split polylines (edges of the polygon) as the input Feature class. From there I wasn't sure what else I should be doing. Do you select the side with the longest line and then draw the perpendicular offsets at a static value or from the width values? I'm really not sure how to go about this. PS: The screenshot in the OP is one sample.
... View more
02242020
04:20 PM

0

0

246

POST

Thank you for this, Bruce. I am indeed aware of this tool but the current requirement is to script such a solution.
... View more
02242020
03:04 PM

0

0

246

POST

Thank you, Bruce, for the link. But not sure that gets me to my goal. Let me attempt to say it differently. So, the screenshot in the OP is a building footprint and the angles at the vertex aren't 90 degrees but should be  digitizing error. I am now trying to adjust each corner which has angles such as 89.88 degrees to become 90 degrees. I am honestly not sure how to go about it and so I am in search of a solution.
... View more
02242020
02:53 PM

0

2

246

POST

I have converted polygon edges into polylines which I have also split at vertices. I am trying to rotate the polygon edges (segments) at angles which I have stored in a field in an attribute table. The angles I have are for the polygon vertices. How do I proceed with rotating the segments  preferably by scripting? For instance, in the above image with a polygon, I need to move those 2 line segments until the angle between them are at rightangle and repeat same for all vertex/corners of the polygon. EDIT: Providing additional context
... View more
02242020
12:36 PM

0

10

480

POST

Thank you, Dan. This did work well in determining the polygon angles as well as polyline angles (arcpy.PolygonToLine_management() ). However, I was wondering how I would get to identify the vertex angle that it had computed. Currently, the above images show how the angles tally with the vertex using the COGO tool to investigate. Just as a note: Also, (guessing the numpy version on the machine is pretty old), I had to change line 12 to read as: w = np . where ( np . is1d ( part , None , invert = False ) ) [ 0 ] I got this hint from here as I was having an "isin" error not found in numpy module. EDIT 1: Added more details to describe the result. EDIT 2: Added a more situational result. (New image with attribute table alongside geometry)
... View more
02232020
03:12 AM

0

1

199

POST

Thank you, Dan. To answer what the purpose is, I want to know the values of each polygon vertex and based on the value of inaccuracies with respect to expected values, I will be moving each side of the polygon (split into segments) to the expected values. For example, for corners which should be 90°, and I get 89.83°, I will need to rotate the line segment. So, my current question above is just the start step I will be needing. I will implement your suggestion above and revert once on my computer. Thank you!
... View more
02222020
08:01 AM

0

3

199

POST

Thank you Dan. Currently not on my computer but will try it out. However, how do I work with this with an input shapefile? A bit unclear on how to use.
... View more
02222020
04:32 AM

0

5

199

Online Status 
Offline

Date Last Visited 
11112020
02:23 AM
