public int getSridFromCrs ( String crs ) { int crsInt ; if ( crs . indexOf ( ' ' ) != - 1 ) { crsInt = Integer . parseInt ( crs . substring ( crs . indexOf ( ' ' ) + 1 ) ) ; } else { try { crsInt = Integer . parseInt ( crs ) ; } catch ( NumberFormatException e ) { crsInt = 0 ; } } return crsInt ; }
Isn t there a method for this in GeoTools?