Is centering existing polygons on a point layer possible?

المشرف العام

Administrator
طاقم الإدارة
I'm writing a python script that automates our grid maps at my place of employment. Everything works fine and dandy other than the ocassionally awkwardly placed grids.

I've been using Create Grid Index Feature, which puts the orgin at the bottom left of the layers extent. This is fine for large datasets as typically it reflects best fit. I even have the code componsate for when only a single grid is required (center on the points layer, make extent equal to dataframe at a scale of 9000, then get xmin and ymin of data frame). The problem is the smaller to medium sized point clusters.

I'm curious if there is a way to align a grid to best fit around the points layer. Currently, a line of points could starts at the bottom left corner of the grid and go through one sheet of my grid map and have a single point on the second page. I would like to align the grid around the points so the points are evenly distributed. Is this something that's possible within the confines of ArcPy? Is there a tool I'm unaware of I could call? Any assistance would be greatly appreciated.



أكثر...
 
أعلى