ReferencingUtilities changes for revisions 7847:7848

This commit removes the Locale argument in the call to getName(…), as a consequence of the removal of that argument in the GeoAPI method signature. This is a trivial change which can hardly be done in other way (except omission of the call to toString(), which Geotk/SIS does), since keeping that argument causes a compilation error.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r7847:7848 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/resources/CRSUtilities.java
Revision 7847Revision 7848
if (!(crs instanceof CompoundCRS)) {
    throw new TransformException(Resources.format(
            ResourceKeys.ERROR_CANT_REDUCE_TO_TWO_DIMENSIONS_$1,
            crs.getName(Locale.getDefault())));
}
final CoordinateReferenceSystem[] c= ((CompoundCRS)crs).getCoordinateReferenceSystems();
if (c.length == 0) {
if (!(crs instanceof CompoundCRS)) {
    throw new TransformException(Resources.format(
            ResourceKeys.ERROR_CANT_REDUCE_TO_TWO_DIMENSIONS_$1,
            crs.getName().toString()));
}
final CoordinateReferenceSystem[] c= ((CompoundCRS)crs).getCoordinateReferenceSystems();
if (c.length == 0) {