NAME: Center of Mass, v. 1.b (Click Name to Download)
View Online PDF Manual Here:
Last modified: September 28, 2006
TOPICS: Polygon, Centroid, Center of Mass, Vector, Area
DESCRIPTION: Polygon centroids produced within ArcView (using the “ReturnCenter” request) do not always represent the true center of mass of that polygon. This extension provides a simple way to calculate both the true centroid of a polygon and the ESRI version of the centroid.
All or only selected records: You can either use all the polygons in the theme for the analysis or only a selected subset of polygons. If any polygons in your theme are selected, then only those selected polygons will be used to generate the centroids. If no polygons in your theme are selected, then all polygons will be used in the analysis.
Projected vs. Unprojected Views: If your original polygons are in Lat/Long coordinates (the Geographic Projection) and your View has been projected, then you have the option of calculating centroids based on either the Geographic projection or your View projection. The choice of projections can dramatically affect the location of the centroids.
Output: This extension will generate a point theme representing the polygon centroids. The point theme will contain all the original attribute fields of the original polygon theme.
REQUIRES: This extension requires that the file "avdlog.dll" be present in the ArcView/BIN32 directory (or $AVBIN/avdlog.dll) and that the Dialog Designer extension be located in your ArcView/ext32 directory, which they usually are if you're running AV 3.1 or better. The Dialog Designer doesn't have to be loaded; it just has to be available. If you are running AV 3.0a, you can download the appropriate files for free from ESRI at:
REVISIONS: Version 1.a (December 8, 2004) makes very minor changes to the code, making it run slightly more efficiently and adding X- and Y-coordinates to the centroid attribute table. This version also corrects an error in the Manual equations.
Version 1.b (September 28, 2006) fixes an error in which the output shapefiles had two fields labeled “X_Coord” rather than a single “X_Coord” and a single “Y_Coord” field.
Recommended Citation Format: For those who wish to cite this extension, the author recommends something similar to:
Jenness, J. 2006. Center of Mass (center_of_mass.avx) extension for ArcView 3.x. Jenness Enterprises. Available at: http://www.jennessent.com/arcview/centermass.htm.
Please let me know if you cite this extension in a publication ( email@example.com ). I will update the citation list to include any publications that I am told about.
Enjoy! Please contact the author if you have problems or find bugs.
Please visit Jenness Enterprises ArcView Extensions site for more ArcView Extensions and other software by the author. We also offer customized ArcView-based GIS consultation services to help you meet your specific data analysis and application development needs.