public static Geometry translate ( Geometry geom , double x , double y ) { if ( geom == null ) { return null ; } final CoordinateSequenceDimensionFilter filter = new CoordinateSequenceDimensionFilter ( ) ; geom . apply ( filter ) ; checkMixed ( filter ) ; return AffineTransformation . translationInstance ( x , y ) . transform ( geom ) ; }
Translates a geometry using X and Y offsets .