Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Now I realize I can manually do this after the polygon feature is calculated by right-clicking the column in the attribute tables to calculate geometry or create a python script to do this but neither of these seem to allow me to automate this for new features without having to take those manual steps after the polygon is created and added to the table. I want this to happen automatically once the feature is created and shows up in the attribute table, much like the auto-generated shape_area column works. Maybe I can use those values to convert them to acres in a new column?

share|improve this question
    
Why not just use the Feature Class Shape_Area? –  Jakub Mar 23 '12 at 19:03
    
What type of environment are you trying to create the feature class in? shp, personal gdb, file gdb, SDE? –  RyanDalton Mar 23 '12 at 20:23
    
@Jakub - I would use that but it's not using the correct units, I would like the area to be in acres. If you have an answer how I could convert that to acres, please add below. Thanks, –  wilbev Mar 24 '12 at 20:18
    
@RyanDalton In this case a file gdb. –  wilbev Mar 24 '12 at 20:19
2  
It sounds like you want to be able to set a trigger on your attribute table to say that your Acres field needs to be updated each time the Shape_Area changes. There's an ArcGIS Idea for this at ideas.arcgis.com/ideaView?id=0873000000088rYAAQ#comments –  PolyGeo Mar 25 '12 at 8:27

1 Answer 1

I might be overkill to use class extensions, but it would most likely be able to convert whatever coordinate system unit you have to acres as area unit. It requires a bit of arcobjects coding and some administration to register the extension.

Implement the interface IObjectClassEvents in your extension and in onChange and onCreate you calculate the area in acres and stores that in another column. Then you have to register your extension on the feature class.

Documentation and an example is available in ESRI's help (assuming .NET, java is also available):

http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Creating_class_extensions/000100000201000000/

Before you go down this road, you should check the possibility of converting the shape_area field when you present i to the user, but that's another question and depends on how you present the data.

share|improve this answer
    
thanks for the answer. I was definitely hoping to do this without any ArcObjects. Was hoping I could use Python but that doesn't seem to be possible at this point. –  wilbev Mar 26 '12 at 18:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.