外环构面

Posted on 2014-11-05 10:11  云起  阅读(7)  评论(0)    收藏  举报  来源
            //g为已有的geometry
            IPolygon pg = g.ShapeCopy as IPolygon;
            IRing r = new RingClass();
            pg.QueryExteriorRings(ref r);
            IPolygon po = new PolygonClass();
            IGeometryCollection gc = po as IGeometryCollection;
            object o=Type.Missing ;
            gc.AddGeometry(r as IGeometry ,ref o,ref o);
            gc.GeometriesChanged();

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3