public static Geometry simplyPreserve ( Geometry geometry , double distance ) { if ( geometry == null ) { return null ; } return TopologyPreservingSimplifier . simplify ( geometry , distance ) ; }
Simplifies a geometry and ensures that the result is a valid geometry having the same dimension and number of components as the input and with the components having the same topological relationship .