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

    Constructors
    Constructor
    Description
    ProjectionTransformer(int sourceSrid, int targetSrid)
    Creates a transformer that reprojects geometries with the provided SRIDs.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProjectionTransformer

      public ProjectionTransformer(int sourceSrid, int targetSrid)
      Creates a transformer that reprojects geometries with the provided SRIDs.
      Parameters:
      sourceSrid - the source SRID
      targetSrid - 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 class org.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 class org.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 class org.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 class org.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 class org.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 class org.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 class org.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 class org.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 class org.locationtech.jts.geom.util.GeometryTransformer