@Test public void testGetCRS() throws Exception { CoordinateReferenceSystem crs = WKTHelper.getCRS(WKTHelper.PROJ_EPSG_4326); assertTrue("Got crs for proj " + WKTHelper.PROJ_EPSG_4326, crs != null); crs = WKTHelper.getCRS(WKTHelper.PROJ_EPSG_3067); assertTrue("Got crs for proj " + WKTHelper.PROJ_EPSG_3067, crs != null); crs = WKTHelper.getCRS(PROJ_INVALID); assertTrue("Null crs for invalid proj " + PROJ_INVALID, crs == null); }
public static CoordinateReferenceSystem getCRS(final String srs) { try { return CRS.decode(srs,true); } catch (Exception e) { log.error(e, "CRS decoding failed"); } return null; }
WKTHelper { public static CoordinateReferenceSystem getCRS(final String srs) { try { return CRS.decode(srs,true); } catch (Exception e) { log.error(e, "CRS decoding failed"); } return null; } }
WKTHelper { public static CoordinateReferenceSystem getCRS(final String srs) { try { return CRS.decode(srs,true); } catch (Exception e) { log.error(e, "CRS decoding failed"); } return null; }  }
WKTHelper { public static CoordinateReferenceSystem getCRS(final String srs) { try { return CRS.decode(srs,true); } catch (Exception e) { log.error(e, "CRS decoding failed"); } return null; }  static Geometry transform(final Geometry geometry, final String sourceSRS, final String targetSRS); static Geometry transform(final Geometry geometry, final CoordinateReferenceSystem sourceCRS,
                                     final CoordinateReferenceSystem targetCRS); static String transform(final String wkt, final String sourceSRS, final String targetSRS); static String transformLayerCoverage(final String wkt, final String targetSRS); static String getWKT(Geometry geometry); static Geometry parseWKT(final String wkt); static Geometry parseWKT(final String wkt, GeometryFactory gf); static CoordinateReferenceSystem getCRS(final String srs); static String getBBOX(final double westBoundLongitude, final double southBoundLatitude,
                                 final double eastBoundLongitude, final double northBoundLatitude); }
WKTHelper { public static CoordinateReferenceSystem getCRS(final String srs) { try { return CRS.decode(srs,true); } catch (Exception e) { log.error(e, "CRS decoding failed"); } return null; }  static Geometry transform(final Geometry geometry, final String sourceSRS, final String targetSRS); static Geometry transform(final Geometry geometry, final CoordinateReferenceSystem sourceCRS,
                                     final CoordinateReferenceSystem targetCRS); static String transform(final String wkt, final String sourceSRS, final String targetSRS); static String transformLayerCoverage(final String wkt, final String targetSRS); static String getWKT(Geometry geometry); static Geometry parseWKT(final String wkt); static Geometry parseWKT(final String wkt, GeometryFactory gf); static CoordinateReferenceSystem getCRS(final String srs); static String getBBOX(final double westBoundLongitude, final double southBoundLatitude,
                                 final double eastBoundLongitude, final double northBoundLatitude); final static String PROJ_EPSG_4326; final static String PROJ_EPSG_3067; final static CoordinateReferenceSystem CRS_EPSG_4326; }