This change, identified with the "fix for GEOT-2613" commit message, has been discarded. This change was applied in the following method:
public static SingleCRS getHorizontalCRS(CoordinateReferenceSystem crs);
This change assumes that a Cartesian coordinate system is certainly horizontal. This reasoning seems to ignore Cartesian coordinate systems for vertical slices (profiles), coordinate systems fitting mountain slopes or geologic features, and all engineering coordinate reference systems (boats, planes, satellites, etc.).
Command line:
svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r33570:33571 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/referencing/CRS.java
Revision 32190 | Revision 33571 |
---|---|
import org.opengis.referencing.datum.*; import org.opengis.referencing.operation.*; import org.opengis.referencing.cs.EllipsoidalCS; import org.opengis.referencing.cs.CoordinateSystem; import org.opengis.referencing.cs.CoordinateSystemAxis; import org.opengis.referencing.operation.CoordinateOperation; |
import org.opengis.referencing.datum.*;
import org.opengis.referencing.operation.*;
import org.opengis.referencing.cs.EllipsoidalCS;
import org.opengis.referencing.cs.CartesianCS;
import org.opengis.referencing.cs.CoordinateSystem;
import org.opengis.referencing.cs.CoordinateSystemAxis;
import org.opengis.referencing.operation.CoordinateOperation; |
if (base instanceof GeographicCRS) { return (SingleCRS) crs; // Really returns 'crs', not 'base'. } } else if (dimension >= 3 && crs instanceof GeographicCRS) { /* * For three-dimensional Geographic CRS, extracts the axis having a direction |
if (base instanceof GeographicCRS) { return (SingleCRS) crs; // Really returns 'crs', not 'base'. } // cartesian are certainly valid horizontal CRS if (base.getCoordinateSystem() instanceof CartesianCS) { return (SingleCRS) crs; // Really returns 'crs', not 'base'. } } else if (dimension >= 3 && crs instanceof GeographicCRS) { /* * For three-dimensional Geographic CRS, extracts the axis having a direction |