I have a fishnet grid (polygon layer) and another polygon layer containing some hexagons. I would like for each square polygon in the fishnet layer that covers a hexagon (even a tiny edge of it) to take the name attribute of the hexagon. If more than one hexagon touches a square polygon, I want the square polygon to take the name of the hexagon which covers the highest area within that square.
I’m thinking something like:
gp.SpatialJoin_analysis(Fishnet, Hexagons, Output1, "JOIN_ONE_TO_ONE", "KEEP_COMMON", "Name 'Name' true true false 12 Text 0 0 ,First,#,Hexagons.shp,Name,-1,-1", "INTERSECTS", "0 DecimalDegrees", "")
How can I replace “INTERSECTS” with a different rule i.e. hexagon with largest area?
A spatial join analysis may not be the best analysis here and I’m open to suggestions. I’m using ArcGIS 9.3 and python 2.5.