Jump to content

how do i calculate polygon area in arcengine?


wetland

what's the best remote sensing software ?  

2 members have voted

  1. 1. what's the best remote sensing software ?

    • ENVI
      1
    • ERDAS Imagine
      1
    • PCI Geomatica
      0


Recommended Posts

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 .

Link to comment
Share on other sites

  • Administrators

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:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.

Disable-Adblock.png

 

If you enjoy our contents, support us by Disable ads Blocker or add GIS-area to your ads blocker whitelist