wetland Posted February 14, 2012 Report Share Posted February 14, 2012 Hi: I'm new in using arcengine . i'd like to calculate polygon area such that when i select a layer in combobox , the "OK" button calculate polygon area and save the result in a dbf . i wrote the below code for selecting a polygon in combobox for (int i = 0; i < pmapcontrol2.LayerCount; i++) { Pfeaturelayer = (IFeatureLayer)pmapcontrol2.get_Layer(i); if (Pfeaturelayer.FeatureClass.ShapeType == esriGeometryType.esriGeometryPolygon) { cmbfeaturelayer.Items.Add(pmapcontrol2.get_Layer(i).Name); } } but i don't know how can i use Iarea to calculate area of pfeaturelayer . Quote Link to comment Share on other sites More sharing options...
Administrators EmperoR Posted February 14, 2012 Administrators Report Share Posted February 14, 2012 weird, :shocked: you make a poll bout the best remote sensing software but the threads itself ask bout arcengine some example in VB [hide] http://forums.esri.com/Thread.asp?c=159&f=1707&t=294230 [/hide] im not programmer so I recommend you to check for NET framework at [hide] http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html [/hide] especially in code gallery where you can find many example bout programming :cheesy: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.