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); }
public static IGeometry Clean(IGeometry geom) { GeometryEditorEx editor = new GeometryEditorEx(new PolygonCleaner()); return(editor.Edit(geom)); }