CRS changes for revisions 28656:28657

This code does not appear anymore in SIS or Geotk.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r28656:28657 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/referencing/CRS.java
Revision 28656Revision 28657
if (envelope != null) {
    final CoordinateReferenceSystem sourceCRS = envelope.getCoordinateReferenceSystem();
    if (sourceCRS != null) try {
        crs = CRSUtilities.getCRS2D(crs);
        if (!equalsIgnoreMetadata(sourceCRS, crs)) {
            final GeneralEnvelope e;
            e = transform(findMathTransform(sourceCRS, crs, true), envelope);
if (envelope != null) {
    final CoordinateReferenceSystem sourceCRS = envelope.getCoordinateReferenceSystem();
    if (sourceCRS != null) try {
        crs = CRS.getHorizontalCRS(crs);
       if(crs==null)
         throw new TransformException(
              Errors.format(
                           ErrorKeys.CANT_SEPARATE_CRS_$1,crs));
        if (!equalsIgnoreMetadata(sourceCRS, crs)) {
            final GeneralEnvelope e;
            e = transform(findMathTransform(sourceCRS, crs, true), envelope);