예제 #1
0
        private IGeometry ReplaceLines(IGeometry geom, IList <ISegmentString> segStrings)
        {
            var nodedLinesMap = NodedLinesMap(segStrings);
            var lineReplacer  = new GeometryCoordinateReplacer(nodedLinesMap);
            var geomEditor    = new GeometryEditorEx(lineReplacer);
            var snapped       = geomEditor.Edit(geom);

            return(snapped);
        }
예제 #2
0
        public static IGeometry Clean(IGeometry geom)
        {
            GeometryEditorEx editor = new GeometryEditorEx(new PolygonCleaner());

            return(editor.Edit(geom));
        }