Package mil.nga.sf.proj
Class GeometryTransform
- java.lang.Object
-
- mil.nga.proj.ProjectionTransform
-
- mil.nga.sf.proj.GeometryTransform
-
public class GeometryTransform extends ProjectionTransform
Geometry Projection Transform- Since:
- 4.0.0
- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.proj.ProjectionTransform
ctFactory, fromProjection, toProjection, transform
-
-
Constructor Summary
Constructors Constructor Description GeometryTransform(Projection fromProjection, Projection toProjection)
ConstructorGeometryTransform(ProjectionTransform transform)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GeometryTransform
create(long fromEpsg, long toEpsg)
Create a geometry projection transformstatic GeometryTransform
create(long fromEpsg, Projection toProjection)
Create a geometry projection transformstatic GeometryTransform
create(String fromAuthority, long fromCode, String toAuthority, long toCode)
Create a geometry projection transformstatic GeometryTransform
create(String fromAuthority, long fromCode, Projection toProjection)
Create a geometry projection transformstatic GeometryTransform
create(String fromAuthority, String fromCode, String toAuthority, String toCode)
Create a geometry projection transformstatic GeometryTransform
create(String fromAuthority, String fromCode, Projection toProjection)
Create a geometry projection transformstatic GeometryTransform
create(Projection fromProjection, long toEpsg)
Create a geometry projection transformstatic GeometryTransform
create(Projection fromProjection, String toAuthority, long toCode)
Create a geometry projection transformstatic GeometryTransform
create(Projection fromProjection, String toAuthority, String toCode)
Create a geometry projection transformstatic GeometryTransform
create(Projection fromProjection, Projection toProjection)
Create a geometry projection transformstatic GeometryTransform
create(ProjectionTransform transform)
Create a geometry projection transformGeometryTransform
getInverseTransformation()
List<Point>
transform(List<Point> from)
Transform a list of pointsCircularString
transform(CircularString circularString)
Transform the projected circular stringCompoundCurve
transform(CompoundCurve compoundCurve)
Transform the projected compound curve<T extends Curve>
CurvePolygon<T>transform(CurvePolygon<T> curvePolygon)
Transform the projected curve polygonGeometry
transform(Geometry geometry)
Transform the geometryGeometryCollection<Geometry>
transform(GeometryCollection<Geometry> geometryCollection)
Transform the projected geometry collectionGeometryEnvelope
transform(GeometryEnvelope envelope)
Transform the geometry envelopeLineString
transform(LineString lineString)
Transform the projected line stringMultiLineString
transform(MultiLineString multiLineString)
Transform the projected multi line stringMultiPoint
transform(MultiPoint multiPoint)
Transform the projected multi pointMultiPolygon
transform(MultiPolygon multiPolygon)
Transform the projected multi polygonPoint
transform(Point from)
Transform the projected pointPolygon
transform(Polygon polygon)
Transform the projected polygonPolyhedralSurface
transform(PolyhedralSurface polyhedralSurface)
Transform the projected polyhedral surfaceTIN
transform(TIN tin)
Transform the projected TINTriangle
transform(Triangle triangle)
Transform the projected triangle-
Methods inherited from class mil.nga.proj.ProjectionTransform
getFromProjection, getToProjection, getTransform, isSameProjection, transform, transform, transform
-
-
-
-
Constructor Detail
-
GeometryTransform
public GeometryTransform(Projection fromProjection, Projection toProjection)
Constructor- Parameters:
fromProjection
- from projectiontoProjection
- 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 projectiontoProjection
- to projection- Returns:
- projection transform
-
create
public static GeometryTransform create(Projection fromProjection, long toEpsg)
Create a geometry projection transform- Parameters:
fromProjection
- from projectiontoEpsg
- to epsg- Returns:
- projection transform
-
create
public static GeometryTransform create(Projection fromProjection, String toAuthority, long toCode)
Create a geometry projection transform- Parameters:
fromProjection
- from projectiontoAuthority
- to coordinate authoritytoCode
- 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 projectiontoAuthority
- to coordinate authoritytoCode
- to coordinate code- Returns:
- projection transform
-
create
public static GeometryTransform create(long fromEpsg, Projection toProjection)
Create a geometry projection transform- Parameters:
fromEpsg
- from epsgtoProjection
- 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 authorityfromCode
- from coordinate codetoProjection
- 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 authorityfromCode
- from coordinate codetoProjection
- to projection- Returns:
- projection transform
-
create
public static GeometryTransform create(long fromEpsg, long toEpsg)
Create a geometry projection transform- Parameters:
fromEpsg
- from epsgtoEpsg
- 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 authorityfromCode
- from coordinate codetoAuthority
- to coordinate authoritytoCode
- 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 authorityfromCode
- from coordinate codetoAuthority
- to coordinate authoritytoCode
- 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
-
getInverseTransformation
public GeometryTransform getInverseTransformation()
- Overrides:
getInverseTransformation
in classProjectionTransform
-
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 Curve> CurvePolygon<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
-
transform
public GeometryCollection<Geometry> transform(GeometryCollection<Geometry> geometryCollection)
Transform the projected geometry collection- Parameters:
geometryCollection
- geometry collection- Returns:
- projected geometry collection
-
-