area of a polygon

447
4
11-15-2016 12:58 PM
New Contributor

I'm trying to calculate the area of a polygon but when I add a field I'm not sure which type to make it (short integer, long integer, float, or double)? 

Reply
0 Kudos
4 Replies
MVP Regular Contributor
MVP Honored Contributor

The very short answer is it depends if you are content with an integer (Long) or want decimals (Double). After that, it depends if you're concerned with storage size, in which case choose the smallest data type that suits your needs.

ArcGIS field data types—ArcGIS Help | ArcGIS for Desktop 

MVP Esteemed Contributor

beyond the video, you should really know something about data and its representation in tabular form.  The information here

ArcGIS field data types—ArcGIS Help | ArcGIS for Desktop 

provides guidelines as to the types of fields you can have in tables and what you can expect as acceptable data for such fields.

Barring that, experimentation would be illustrative as well.

EDIT

Kudos to Darren who snagged first

but experiment...

Reply
0 Kudos
Honored Contributor

Also if you work with Geodatabase Feature Class instead of Shapefiles, the geometry metrics is mainteined, i.e., the Shape Length and Area fields are added and calculated automatically (the units would be same as the unit of the defined projection system of the Feature Class).

In case of a shapefile, you need to update it using Calculate Geometry every time you want to see these attribute after making changes in the geometry of the shapefile.

Reply
0 Kudos