How to create a circle as layer in ArcEngine using java?

576
2
03-16-2012 02:05 AM
ApoorvaGora
New Contributor
I have to create a circle through a feature class, so that it can be added to the table of contents as a layer after creation and i can turn it on and off as required and also perform some analysis operations.
I have already created a circle as graphic but i don't know how to add it as layer, i have added it to the map as a element.
I know how to connect to work-space and feature class, put some values in it or delete some but can't figure out the way to draw a polygon(Circle) and add it as a layer.
So plz help me out,
Thanks in advance

Apoorva Gora
0 Kudos
2 Replies
ApoorvaGora
New Contributor
No body ???
0 Kudos
NeilClemmons
Regular Contributor III
Use IFeatureClass.CreateFeature to create the new feature.  Use IFeature.Shape to set the geometry and use IFeature.Store to save it.
0 Kudos