I figure there's a few ways to convert a table to polygon feature class, but what's the fatest and cleanest way to do it? My table has lat, long, azimuth, and beam width and based on all this info I can create polygons.
Couple of methods I am thinking of right now:
- Could I just add an OID field and 'shape' field to my existing table and create polygons
- Create an empty polygon fc, generate polygons and then copy all table rows to fc.
The problem is, I don't really want attribute redundancy by having data in both the table and polygon fc. Thanks!
1 Answer 1
It seems to me if you have lat/longs for each vertex needed to create the polygon then you should be able to just use those to programmatically create the polygons using python and the geoprocessor api as seen here.. http://webhelp.esri.com/arcgiSDEsktop/9.3/index.cfm?TopicName=Writing_geometries
-
your link didn't work but I found writing geometries for arcgis10. thanks for the tip. I know in many ways python is easier and faster but I would still like to do it in .NET...saim– saim2011年06月17日 16:51:17 +00:00Commented Jun 17, 2011 at 16:51
-
Don't know what happend but I fixed it.Justin– Justin2011年06月17日 21:30:21 +00:00Commented Jun 17, 2011 at 21:30
polygonFeatureBuffer.Shape = pPolygon; polygonFeatureCursor.InsertFeature(polygonFeatureBuffer);
to get the SHAPE field populated how do I also get the attributes in there? I don't want to usepolygonFeatureBuffer.set_Value(int, value)
because there's too many fields.