I would like to try to call the function, IFeatureConstruction.SplitPolygonsWithLines( );

The 4th arg is a type IEnumFeature, I have an ISegmentCollection. Can I convert ISegmentCollection to an IEnumFeature?


I would try creating an inmemory polyline featureclass, then insert features into it using the lines from the segment collection.

You could then write a custom class that implements IEnumFeature, that simply wraps a featurecursor, and pass that class to SplitPolygonsWithLines.

  • I actually got it to work :) – patrick Aug 7 '13 at 18:58

No, you cannot. A collection of segments represents geometry information only, with no link to the feature the geometry might have come from. You will need to use references to the actual features.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.