Peps

ClipGemotry not work in 10 Version

Discussion created by Peps on Sep 29, 2010
The function of ClipingGeometry does not work at the use of IMapControl in version 10.
    Sample code:

    if (mFeat != null)
    {
    mTopo = (ITopologicalOperator)mFeat.Shape;
    mFeat = mFCurs.NextFeature();
    while (mFeat != null)
    {
    mTopo = (ITopologicalOperator)mTopo.Union(mFeat.Shape);
    mFeat = mFCurs.NextFeature();
    }

    IBufferConstruction mBuffer = new BufferConstructionClass();
    mClipGeom = mBuffer.Buffer((IGeometry)mTopo, 1000);
    mClipEnvelop = mClipGeom.Envelope;
    axMapControl1.Map.ClipGeometry = mClipGeom;
    }

    This code works in a version 9 without problems.

Outcomes