public static void reproject ( CoordinateReferenceSystem from , CoordinateReferenceSystem to , Object [ ] geometries ) throws Exception { MathTransform mathTransform = CRS . findMathTransform ( from , to ) ; for ( int i = 0 ; i < geometries . length ; i ++ ) { geometries [ i ] = JTS . transform ( ( Geometry ) geometries [ i ] , mathTransform ) ; } }
Reproject a set of geometries