AnsweredAssumed Answered

Some errors on Intersection by ITopologicalOperator

Question asked by valentino on Jun 24, 2010
Latest reply on Jul 29, 2010 by geonetadmin
I'm trying to intersect some polygons (shapes from graphic objects, not features) using the  Intersect method of the ITopologicalOperator class. On the same geometries sometime it works and sometime not.
The code I use is

        Dim pPoly1, pPoly2, pIntersection As IPolygon
        ..
        ..  'give a square shape to the polygons
        ..
        Dim opTop As ITopologicalOperator3 = pPoly1
        pIntersection = opTop.Intersect(pPoly2, esriGeometryDimension.esriGeometry2Dimension)


I've tried also with ITopologicalOperator and ITopologicalOperator2 with the same results.
I can not find a pattern for the uncorrect behaviour except that it seems to get worst the more I move one polygon far right to the other (I know it's strange). In the attached picture the green area is pIntersection .
Any idea?
Thank you in advance
Valentino

Attachments

Outcomes