Hi everyone, here is a question, how can I know relative position of each edge of rectangle with arcpy script, i.e, top edge, bottom edge, left edge and right edge. The rectangle is defined at least 4 points,maybe 8 points,that means uncertain points. and then I need to know which edge any point is on. thank you.
polygon points are ordered in clockwise order with the first and last point repeated (lets leave out holes and multipart features for the moment)
Get the points, parse them into pairs and determine which ones belong to and form the 'extent' rectangle The first point will either belong to the left, top, right bottom of the extent. You can proceed from there