21 package org.matsim.core.utils.geometry.transformations;
23 import org.geotools.api.referencing.FactoryException;
24 import org.geotools.api.referencing.crs.CoordinateReferenceSystem;
25 import org.geotools.api.referencing.operation.MathTransform;
26 import org.geotools.api.referencing.operation.TransformException;
27 import org.geotools.geometry.jts.JTS;
28 import org.geotools.referencing.CRS;
29 import org.locationtech.jts.geom.Point;
56 CoordinateReferenceSystem sourceCRS =
MGC.
getCRS(from);
57 CoordinateReferenceSystem targetCRS =
MGC.
getCRS(to);
60 this.transform = CRS.findMathTransform(sourceCRS, targetCRS,
true);
61 }
catch (FactoryException e) {
71 }
catch (TransformException e) {
static Coord createCoord(final Coordinate coordinate)