public static CoordinateReferenceSystem parseProjection ( final String projection , final Boolean longitudeFirst ) { try { if ( longitudeFirst == null ) { return CRS . decode ( projection ) ; } else { return CRS . decode ( projection , longitudeFirst ) ; } } catch ( NoSuchAuthorityCodeException e ) { throw new RuntimeException ( projection + " was not recognized as a crs code" , e ) ; } catch ( FactoryException e ) { throw new RuntimeException ( "Error occurred while parsing: " + projection , e ) ; } }
Parse the given projection .