Intersecting Featurelayer with geometry

582
2
03-12-2013 05:07 AM
RalphElsaesser
New Contributor
Hi developpers,

I am searching for the easiest solution to intersect a polygon Featurelayer with another polygon of given geometry (IGeometry).

With the ITopologicalOperator I managed already to get a list of intersecting polygons and I can calculate areas and area percentages but when I wanted to write them back to the Featurelayer I realized that I do not have the polygon parts situated outside my selecting polygon. I attach a small jpeg explaining what I want.

Thanks for any snippet or hint!

Ralph
0 Kudos
2 Replies
WeifengHe
Occasional Contributor II
So if my understanding is correct, you want split the polygons in the layer with the given polygon. let's call it cutting polygon.  As you said, you can get the polygon parts inside the cutting polygon using ITopologicalOperator.Intersect method.  In order to get the parts outside the cutting polygon, you need to call ITopologicalOpearator.Difference.  See the link below.

http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Difference_Method/002m00...
0 Kudos
DuncanHornby
MVP Notable Contributor
Just an idea but you could just call the Identity GeoProcessing Tool? This does assume you and your users have Arc/Info (Advanced) license level.
0 Kudos