Construct Polygon based on Polylines

565
3
06-28-2010 09:14 AM
PeterPowell
New Contributor
Hello,

I am trying to contruct polygons based on polylines similar to "Feature To Polygon". Is there anyway to do this in memory? I really do not want to create a feature class and then run geoprocessing Feature to Polygon.

Also it is possible that I may have polylines that are dangles and I do not acutally want to be used in the creation of the polygon. Is there an easy way to identify these Polylines and remove them?

Thanks
0 Kudos
3 Replies
KirkKuykendall
Occasional Contributor III
You might try an in-memory featureclass
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//001m0000002q000000

If that doesn't play nicely with the geoprocessor, maybe try it with the IFeatureConstruction interface.
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/ConstructPolygonsFromFea...
0 Kudos
PeterPowell
New Contributor
Thanks for the suggestion. Is it possible to use in memory featureclasses as an input to geoprocessor?

I am getting the following error.
"Failed to execute. Parameters are not valid.\nERROR 000840: The value is not a Feature Class.\nFailed to execute (FeatureToPolygon).\n" Error.
0 Kudos
KirkKuykendall
Occasional Contributor III
have you tried running the tool from python with in_memory as part of the path?
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002w0000005s000000.htm
0 Kudos