Changes in the import statements were driven by a GeoAPI change - there is not way to do otherwise.
Changes in FactoryFinder
were also driven by a classname change (this time in GeoTools),
but is expected to be irrelevant for Apache SIS since we plan to use dependency injection instead.
Command line:
svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r24924:25050 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/resources/CRSUtilities.java
Revision 24924 | Revision 25050 |
---|---|
import org.opengis.referencing.operation.MathTransform; import org.opengis.referencing.operation.MathTransform2D; import org.opengis.referencing.operation.TransformException; import org.opengis.spatialschema.geometry.Envelope; import org.opengis.spatialschema.geometry.DirectPosition; import org.opengis.spatialschema.geometry.MismatchedDimensionException; // Geotools dependencies import org.geotools.geometry.GeneralDirectPosition; |
import org.opengis.referencing.operation.MathTransform; import org.opengis.referencing.operation.MathTransform2D; import org.opengis.referencing.operation.TransformException; import org.opengis.geometry.Envelope; import org.opengis.geometry.DirectPosition; import org.opengis.geometry.MismatchedDimensionException; // Geotools dependencies import org.geotools.geometry.GeneralDirectPosition; |
import org.geotools.measure.Latitude;
import org.geotools.measure.Longitude;
import org.geotools.referencing.CRS;
import org.geotools.referencing.FactoryFinder;
import org.geotools.referencing.crs.DefaultGeographicCRS;
import org.geotools.resources.i18n.ErrorKeys;
import org.geotools.resources.i18n.Errors; |
import org.geotools.measure.Latitude;
import org.geotools.measure.Longitude;
import org.geotools.referencing.CRS;
import org.geotools.referencing.ReferencingFactoryFinder;
import org.geotools.referencing.crs.DefaultGeographicCRS;
import org.geotools.resources.i18n.ErrorKeys;
import org.geotools.resources.i18n.Errors; |
try {
crs = getCRS2D(crs);
if (!CRS.equalsIgnoreMetadata(DefaultGeographicCRS.WGS84, crs)) {
final CoordinateOperation op = FactoryFinder.getCoordinateOperationFactory(null)
.createOperation(crs, DefaultGeographicCRS.WGS84);
bounds = CRS.transform((MathTransform2D) op.getMathTransform(), bounds, null);
} |
try {
crs = getCRS2D(crs);
if (!CRS.equalsIgnoreMetadata(DefaultGeographicCRS.WGS84, crs)) {
final CoordinateOperation op = ReferencingFactoryFinder.getCoordinateOperationFactory(null)
.createOperation(crs, DefaultGeographicCRS.WGS84);
bounds = CRS.transform((MathTransform2D) op.getMathTransform(), bounds, null);
} |