Class GeometryTransform


  • public class GeometryTransform
    extends ProjectionTransform
    Geometry Projection Transform
    Since:
    4.0.0
    Author:
    osbornb
    • Constructor Detail

      • GeometryTransform

        public GeometryTransform​(Projection fromProjection,
                                 Projection toProjection)
        Constructor
        Parameters:
        fromProjection - from projection
        toProjection - to projection
      • GeometryTransform

        public GeometryTransform​(ProjectionTransform transform)
        Constructor
        Parameters:
        transform - projection transform
    • Method Detail

      • create

        public static GeometryTransform create​(Projection fromProjection,
                                               Projection toProjection)
        Create a geometry projection transform
        Parameters:
        fromProjection - from projection
        toProjection - to projection
        Returns:
        projection transform
      • create

        public static GeometryTransform create​(Projection fromProjection,
                                               long toEpsg)
        Create a geometry projection transform
        Parameters:
        fromProjection - from projection
        toEpsg - to epsg
        Returns:
        projection transform
      • create

        public static GeometryTransform create​(Projection fromProjection,
                                               String toAuthority,
                                               long toCode)
        Create a geometry projection transform
        Parameters:
        fromProjection - from projection
        toAuthority - to coordinate authority
        toCode - to coordinate code
        Returns:
        projection transform
      • create

        public static GeometryTransform create​(Projection fromProjection,
                                               String toAuthority,
                                               String toCode)
        Create a geometry projection transform
        Parameters:
        fromProjection - from projection
        toAuthority - to coordinate authority
        toCode - to coordinate code
        Returns:
        projection transform
      • create

        public static GeometryTransform create​(long fromEpsg,
                                               Projection toProjection)
        Create a geometry projection transform
        Parameters:
        fromEpsg - from epsg
        toProjection - to projection
        Returns:
        projection transform
      • create

        public static GeometryTransform create​(String fromAuthority,
                                               long fromCode,
                                               Projection toProjection)
        Create a geometry projection transform
        Parameters:
        fromAuthority - from coordinate authority
        fromCode - from coordinate code
        toProjection - to projection
        Returns:
        projection transform
      • create

        public static GeometryTransform create​(String fromAuthority,
                                               String fromCode,
                                               Projection toProjection)
        Create a geometry projection transform
        Parameters:
        fromAuthority - from coordinate authority
        fromCode - from coordinate code
        toProjection - to projection
        Returns:
        projection transform
      • create

        public static GeometryTransform create​(long fromEpsg,
                                               long toEpsg)
        Create a geometry projection transform
        Parameters:
        fromEpsg - from epsg
        toEpsg - to epsg
        Returns:
        projection transform
      • create

        public static GeometryTransform create​(String fromAuthority,
                                               long fromCode,
                                               String toAuthority,
                                               long toCode)
        Create a geometry projection transform
        Parameters:
        fromAuthority - from coordinate authority
        fromCode - from coordinate code
        toAuthority - to coordinate authority
        toCode - to coordinate code
        Returns:
        projection transform
      • create

        public static GeometryTransform create​(String fromAuthority,
                                               String fromCode,
                                               String toAuthority,
                                               String toCode)
        Create a geometry projection transform
        Parameters:
        fromAuthority - from coordinate authority
        fromCode - from coordinate code
        toAuthority - to coordinate authority
        toCode - to coordinate code
        Returns:
        projection transform
      • create

        public static GeometryTransform create​(ProjectionTransform transform)
        Create a geometry projection transform
        Parameters:
        transform - projection transform
        Returns:
        geometry projection transform
      • transform

        public GeometryEnvelope transform​(GeometryEnvelope envelope)
        Transform the geometry envelope
        Parameters:
        envelope - geometry envelope
        Returns:
        geometry envelope
      • transform

        public Geometry transform​(Geometry geometry)
        Transform the geometry
        Parameters:
        geometry - geometry
        Returns:
        projected geometry
      • transform

        public Point transform​(Point from)
        Transform the projected point
        Parameters:
        from - from point
        Returns:
        projected from
      • transform

        public List<Point> transform​(List<Point> from)
        Transform a list of points
        Parameters:
        from - points to transform
        Returns:
        transformed points
      • transform

        public LineString transform​(LineString lineString)
        Transform the projected line string
        Parameters:
        lineString - line string
        Returns:
        projected line string
      • transform

        public Polygon transform​(Polygon polygon)
        Transform the projected polygon
        Parameters:
        polygon - polygon
        Returns:
        projected polygon
      • transform

        public MultiPoint transform​(MultiPoint multiPoint)
        Transform the projected multi point
        Parameters:
        multiPoint - multi point
        Returns:
        projected multi point
      • transform

        public MultiLineString transform​(MultiLineString multiLineString)
        Transform the projected multi line string
        Parameters:
        multiLineString - multi line string
        Returns:
        projected multi line string
      • transform

        public MultiPolygon transform​(MultiPolygon multiPolygon)
        Transform the projected multi polygon
        Parameters:
        multiPolygon - multi polygon
        Returns:
        projected multi polygon
      • transform

        public CircularString transform​(CircularString circularString)
        Transform the projected circular string
        Parameters:
        circularString - circular string
        Returns:
        projected circular string
      • transform

        public CompoundCurve transform​(CompoundCurve compoundCurve)
        Transform the projected compound curve
        Parameters:
        compoundCurve - compound curve
        Returns:
        projected compound curve
      • transform

        public <T extends CurveCurvePolygon<T> transform​(CurvePolygon<T> curvePolygon)
        Transform the projected curve polygon
        Type Parameters:
        T - curve type
        Parameters:
        curvePolygon - curve polygon
        Returns:
        projected curve polygon
      • transform

        public PolyhedralSurface transform​(PolyhedralSurface polyhedralSurface)
        Transform the projected polyhedral surface
        Parameters:
        polyhedralSurface - polyhedral surface
        Returns:
        projected polyhedral surface
      • transform

        public TIN transform​(TIN tin)
        Transform the projected TIN
        Parameters:
        tin - TIN
        Returns:
        projected tin
      • transform

        public Triangle transform​(Triangle triangle)
        Transform the projected triangle
        Parameters:
        triangle - triangle
        Returns:
        projected triangle