CRS changes for revisions 28480:28481

The functionality and javadoc of this method have been fully rewritten. SIS puts this functionality in a different class (IdentifiedObject), uses a different method name (getIdentifierOrName), more generic signature (accept any IdentifiedObject instance), implements a different algorithm which looks for identifiers first before to fallback on name, and uses a more reliable formatting code than toString().

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r28480:28481 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/referencing/CRS.java
Revision 28480Revision 28481
    public static void main(final String[] args) {
        Command.execute(args);
    }
}
    public static void main(final String[] args) {
        Command.execute(args);
    }

    /**
     * OGC Web Services have the concept of a Spatial Reference System identifier used to communicate
     * CRS information between systems.
     * <p>
     * Spatial Reference System (ie SRS) values:
     * <ul>
     * <li>EPSG:4326 - this is the usual format understood to mean forceXY order
     * <li>AUTO:43200 -
     * <li>ogc:uri ..... - understood to match the EPSG database axis order
     * <li>well known text
     * </ul>
     *
     * @param crs
     * @return SRS represented as a string for communication between systems
     */
    public static String toSRS( CoordinateReferenceSystem crs ) {
        if( crs == null ) return null;
        return crs.getName().toString();
}
}