public static Geometry setSRID ( Geometry geometry , Integer srid ) throws IllegalArgumentException { if ( geometry == null ) { return null ; } if ( srid == null ) { throw new IllegalArgumentException ( "The SRID code cannot be null." ) ; } Geometry geom = geometry . copy ( ) ; geom . setSRID ( srid ) ; return geom ; }
Set a new SRID to the geometry