Package org.apache.calcite.runtime
Class ProjectionTransformer
java.lang.Object
org.locationtech.jts.geom.util.GeometryTransformer
org.apache.calcite.runtime.ProjectionTransformer
public class ProjectionTransformer
extends org.locationtech.jts.geom.util.GeometryTransformer
Transforms the projection of a geometry.
-
Field Summary
Fields inherited from class org.locationtech.jts.geom.util.GeometryTransformer
factory
-
Constructor Summary
ConstructorDescriptionProjectionTransformer
(int sourceSrid, int targetSrid) Creates a transformer that reprojects geometries with the provided SRIDs. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.locationtech.jts.geom.CoordinateSequence
transformCoordinates
(org.locationtech.jts.geom.CoordinateSequence coordinateSequence, org.locationtech.jts.geom.Geometry parent) protected org.locationtech.jts.geom.Geometry
transformGeometryCollection
(org.locationtech.jts.geom.GeometryCollection geom, org.locationtech.jts.geom.Geometry parent) protected org.locationtech.jts.geom.Geometry
transformLinearRing
(org.locationtech.jts.geom.LinearRing geom, org.locationtech.jts.geom.Geometry parent) protected org.locationtech.jts.geom.Geometry
transformLineString
(org.locationtech.jts.geom.LineString geom, org.locationtech.jts.geom.Geometry parent) protected org.locationtech.jts.geom.Geometry
transformMultiLineString
(org.locationtech.jts.geom.MultiLineString geom, org.locationtech.jts.geom.Geometry parent) protected org.locationtech.jts.geom.Geometry
transformMultiPoint
(org.locationtech.jts.geom.MultiPoint geom, org.locationtech.jts.geom.Geometry parent) protected org.locationtech.jts.geom.Geometry
transformMultiPolygon
(org.locationtech.jts.geom.MultiPolygon geom, org.locationtech.jts.geom.Geometry parent) protected org.locationtech.jts.geom.Geometry
transformPoint
(org.locationtech.jts.geom.Point geom, org.locationtech.jts.geom.Geometry parent) protected org.locationtech.jts.geom.Geometry
transformPolygon
(org.locationtech.jts.geom.Polygon geom, org.locationtech.jts.geom.Geometry parent) Methods inherited from class org.locationtech.jts.geom.util.GeometryTransformer
copy, createCoordinateSequence, getInputGeometry, transform
-
Constructor Details
-
ProjectionTransformer
public ProjectionTransformer(int sourceSrid, int targetSrid) Creates a transformer that reprojects geometries with the provided SRIDs.- Parameters:
sourceSrid
- the source SRIDtargetSrid
- the target SRID
-
-
Method Details
-
transformCoordinates
protected org.locationtech.jts.geom.CoordinateSequence transformCoordinates(org.locationtech.jts.geom.CoordinateSequence coordinateSequence, org.locationtech.jts.geom.Geometry parent) - Overrides:
transformCoordinates
in classorg.locationtech.jts.geom.util.GeometryTransformer
-
transformPoint
protected org.locationtech.jts.geom.Geometry transformPoint(org.locationtech.jts.geom.Point geom, org.locationtech.jts.geom.Geometry parent) - Overrides:
transformPoint
in classorg.locationtech.jts.geom.util.GeometryTransformer
-
transformMultiPoint
protected org.locationtech.jts.geom.Geometry transformMultiPoint(org.locationtech.jts.geom.MultiPoint geom, org.locationtech.jts.geom.Geometry parent) - Overrides:
transformMultiPoint
in classorg.locationtech.jts.geom.util.GeometryTransformer
-
transformLinearRing
protected org.locationtech.jts.geom.Geometry transformLinearRing(org.locationtech.jts.geom.LinearRing geom, org.locationtech.jts.geom.Geometry parent) - Overrides:
transformLinearRing
in classorg.locationtech.jts.geom.util.GeometryTransformer
-
transformLineString
protected org.locationtech.jts.geom.Geometry transformLineString(org.locationtech.jts.geom.LineString geom, org.locationtech.jts.geom.Geometry parent) - Overrides:
transformLineString
in classorg.locationtech.jts.geom.util.GeometryTransformer
-
transformMultiLineString
protected org.locationtech.jts.geom.Geometry transformMultiLineString(org.locationtech.jts.geom.MultiLineString geom, org.locationtech.jts.geom.Geometry parent) - Overrides:
transformMultiLineString
in classorg.locationtech.jts.geom.util.GeometryTransformer
-
transformPolygon
protected org.locationtech.jts.geom.Geometry transformPolygon(org.locationtech.jts.geom.Polygon geom, org.locationtech.jts.geom.Geometry parent) - Overrides:
transformPolygon
in classorg.locationtech.jts.geom.util.GeometryTransformer
-
transformMultiPolygon
protected org.locationtech.jts.geom.Geometry transformMultiPolygon(org.locationtech.jts.geom.MultiPolygon geom, org.locationtech.jts.geom.Geometry parent) - Overrides:
transformMultiPolygon
in classorg.locationtech.jts.geom.util.GeometryTransformer
-
transformGeometryCollection
protected org.locationtech.jts.geom.Geometry transformGeometryCollection(org.locationtech.jts.geom.GeometryCollection geom, org.locationtech.jts.geom.Geometry parent) - Overrides:
transformGeometryCollection
in classorg.locationtech.jts.geom.util.GeometryTransformer
-