/// <summary> /// /// </summary> /// <param name="geom"></param> /// <returns></returns> public IGeometry Reduce(IGeometry geom) { GeometryEditor geomEdit; if (changePrecisionModel) { GeometryFactory newFactory = new GeometryFactory(newPrecisionModel); geomEdit = new GeometryEditor(newFactory); } else // don't change point factory geomEdit = new GeometryEditor(); return geomEdit.Edit(geom, new PrecisionReducerCoordinateOperation(this)); }
/// <summary> /// /// </summary> /// <param name="g"></param> /// <returns> /// A clone of g based on a CoordinateSequence created by this /// GeometryFactory's CoordinateSequenceFactory. /// </returns> public IGeometry CreateGeometry(IGeometry g) { // could this be cached to make this more efficient? Or maybe it isn't enough overhead to bother GeometryEditor editor = new GeometryEditor(this); return editor.Edit(g, new AnonymousCoordinateOperationImpl()); }