CRS changes for revisions 11160:11177

The codes committed here do not exist anymore in SIS/Geotk: it is up to the AuthorityFactory implementations to decide if the given authority codes shall be handled in a case-sensitive way or not. In the case of the AUTHORITY = code.substring(…) call, the work is done by org.apache.sis.internal.util.DefinitionURI.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r11160:11177 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/referencing/CRS.java
Revision 11160Revision 11177
if( split == -1 ){
    throw new NoSuchAuthorityCodeException("No authority was defined - did you forget 'AUTHORITY:NUMBER'?", "unknown", code );
}
final String AUTHORITY = code.substring( 0, split );
Throwable trouble = null;

// FIXME: FactoryFinder does not appear to work for other modules
if( split == -1 ){
    throw new NoSuchAuthorityCodeException("No authority was defined - did you forget 'AUTHORITY:NUMBER'?", "unknown", code );
}
final String AUTHORITY = code.substring( 0, split ).trim().toUpperCase();
Throwable trouble = null;

// FIXME: FactoryFinder does not appear to work for other modules
    if( !authority.getIdentifiers().contains( AUTHORITY ) ) continue;

    System.out.println("Lookup "+code+ " authority "+factory.getClass().toString() );
    CoordinateReferenceSystem crs = (CoordinateReferenceSystem) factory.createObject( code );
    if( crs != null ) return crs;
} catch (FactoryException e) {
    trouble = e;
    if( !authority.getIdentifiers().contains( AUTHORITY ) ) continue;

    System.out.println("Lookup "+code+ " authority "+factory.getClass().toString() );
    CoordinateReferenceSystem crs = (CoordinateReferenceSystem) factory.createObject( code.toUpperCase() );
    if( crs != null ) return crs;
} catch (FactoryException e) {
    trouble = e;