Obtain individual extent for multiple polygons on one layer
I have one polygon layer that has 250+ polygons. I want to get the min and max extent of each polygon into an ascii or excel file. Is there a way to do this in a batch file? I am using ArcMap 9.2
Mapping Center Answer:
You can use the field calculator in the Advanced mode with the following Script:
Dim dblX As Double
Dim pArea As IPolygon
Set pArea = [Shape]
coordval = pArea.Envelope.XMax (use YMax, XMin, and YMin in successive fields)
See the IEnvelope help for all the things you could do.
If you would like to post a comment, please login.