- Species Diversity
Creating a centroid point file from a polygon in ArcEditor or ArcInfo is quick and painless. In ArcToolBox go to Data Management Tools/Features/Feature to Point and follow instructions.
There is a downside to this convenience however. 8,910 dollars of them in fact, the cost of an ArcInfo license.
How to calculate centroids in ArcView.
- In the attribute table of your polygon layer and under Options choose Add Field.
- Add an X and Y field of type Double
- Right-click on the New X Column Header and choose Field Calculator.
- In the Field Calculator Dialog that opens, click Help
Here's all the instructions you need, but they are written in ESRI. Allow me to translate. Copy this section:
Dim Output As Double
Dim pArea As IArea
Set pArea = [Shape]
Output = pArea.Centroid.X
Paste it into Field Calculator. Check Advanced, and enter Output into the final textbox.
- Click OK and repeat for Y.
You now have the X,Y coordinates of the polygon centroids. If you really need a separate point layer, copy the DBF file for your polygon layer to a new file and add as a point layer using the Add X,Y Data... dialog under the Tools menu.
Posted by idfg-bthomas at 05/17/2011 in
What is this?
We use the IFWIS Blog to keep our staff, cooperators and the public updated on what we are working on, what's new and share tips about using our software and website.
The content of the IFWIS Blog is often highly technical, but we try our best to keep our posts accessible and jargon-free. When this is not possible, we'll link to other resources online to provide background. Thanks for reading and please follow our blog for updates.
- IFWIS RSS Feed
- Daily Email Digest (All Public Content)
- Or follow just one of the many topic-specific tag feeds or pages below.