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 GeometryTransformcreate(long fromEpsg, long toEpsg)Create a geometry projection transformstatic GeometryTransformcreate(long fromEpsg, Projection toProjection)Create a geometry projection transformstatic GeometryTransformcreate(String fromAuthority, long fromCode, String toAuthority, long toCode)Create a geometry projection transformstatic GeometryTransformcreate(String fromAuthority, long fromCode, Projection toProjection)Create a geometry projection transformstatic GeometryTransformcreate(String fromAuthority, String fromCode, String toAuthority, String toCode)Create a geometry projection transformstatic GeometryTransformcreate(String fromAuthority, String fromCode, Projection toProjection)Create a geometry projection transformstatic GeometryTransformcreate(Projection fromProjection, long toEpsg)Create a geometry projection transformstatic GeometryTransformcreate(Projection fromProjection, String toAuthority, long toCode)Create a geometry projection transformstatic GeometryTransformcreate(Projection fromProjection, String toAuthority, String toCode)Create a geometry projection transformstatic GeometryTransformcreate(Projection fromProjection, Projection toProjection)Create a geometry projection transformstatic GeometryTransformcreate(ProjectionTransform transform)Create a geometry projection transformGeometryTransformgetInverseTransformation()List<Point>transform(List<Point> from)Transform a list of pointsCircularStringtransform(CircularString circularString)Transform the projected circular stringCompoundCurvetransform(CompoundCurve compoundCurve)Transform the projected compound curve<T extends Curve>
CurvePolygon<T>transform(CurvePolygon<T> curvePolygon)Transform the projected curve polygonGeometrytransform(Geometry geometry)Transform the geometryGeometryCollection<Geometry>transform(GeometryCollection<Geometry> geometryCollection)Transform the projected geometry collectionGeometryEnvelopetransform(GeometryEnvelope envelope)Transform the geometry envelopeLineStringtransform(LineString lineString)Transform the projected line stringMultiLineStringtransform(MultiLineString multiLineString)Transform the projected multi line stringMultiPointtransform(MultiPoint multiPoint)Transform the projected multi pointMultiPolygontransform(MultiPolygon multiPolygon)Transform the projected multi polygonPointtransform(Point from)Transform the projected pointPolygontransform(Polygon polygon)Transform the projected polygonPolyhedralSurfacetransform(PolyhedralSurface polyhedralSurface)Transform the projected polyhedral surfaceTINtransform(TIN tin)Transform the projected TINTriangletransform(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:
getInverseTransformationin 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
-
-