public class CoordinateSystem
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Modifier | Constructor and Description |
---|---|
|
CoordinateSystem() |
|
CoordinateSystem(CoordinateSystem crs) |
protected |
CoordinateSystem(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
static boolean |
addGeoid(java.lang.String path)
Register geoid model.
|
void |
close() |
static java.util.Optional<Matrix> |
datumTransform(CoordinateSystem source,
CoordinateSystem target)
Coordinate transformation from source to target coordinate system datum.
|
void |
delete() |
protected void |
finalize() |
java.lang.String |
getAuthority()
Authority identifier of the coordinate system.
|
protected static long |
getCPtr(CoordinateSystem obj) |
java.lang.String |
getProj4()
Coordinate system definition in PROJ.4 format.
|
java.lang.String |
getWkt()
Coordinate system definition in WKT format.
|
boolean |
init(java.lang.String wkt)
Initialize projection based on specified WKT definition or authority identifier.
|
Matrix |
localframe(Vector point)
Returns 4x4 transformation matrix to LSE coordinates at the given point.
|
java.util.Optional<CoordinateSystem> |
makeGeocentric()
Construct geocentric coordinate system using coordinate system datum.
|
java.util.Optional<CoordinateSystem> |
makeGeographic()
Construct geographic coordinate system using coordinate system datum.
|
Vector |
project(Vector point)
Projects point from geocentric coordinates to projected geographic coordinate system.
|
static Vector |
transform(Vector point,
CoordinateSystem source,
CoordinateSystem target)
Transform point coordinates between coordinate systems.
|
static Matrix |
transformationMatrix(Vector point,
CoordinateSystem source,
CoordinateSystem target)
Local approximation of coordinate transformation from source to target coordinate system at the given point.
|
Vector |
unproject(Vector point)
Unprojects point from projected coordinates to geocentric coordinates.
|
protected CoordinateSystem(long cPtr, boolean cMemoryOwn)
public CoordinateSystem()
public CoordinateSystem(CoordinateSystem crs)
protected static long getCPtr(CoordinateSystem obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public void close()
close
in interface java.lang.AutoCloseable
public java.lang.String getAuthority()
public java.lang.String getWkt()
public java.lang.String getProj4()
public boolean init(java.lang.String wkt)
wkt
- WKT definition of coordinate system or authority identifier.public Vector project(Vector point)
point
- 3D point in geocentric coordinates.public Vector unproject(Vector point)
point
- 3D point in projected coordinate system.public Matrix localframe(Vector point)
point
- Coordinates of the origin in the geocentric coordinates.public java.util.Optional<CoordinateSystem> makeGeographic()
public java.util.Optional<CoordinateSystem> makeGeocentric()
public static java.util.Optional<Matrix> datumTransform(CoordinateSystem source, CoordinateSystem target)
source
- Source coordinate system.target
- Target coordinate system.public static Vector transform(Vector point, CoordinateSystem source, CoordinateSystem target)
point
- Point coordinates.source
- Source coordinate system.target
- Target coordinate system.public static Matrix transformationMatrix(Vector point, CoordinateSystem source, CoordinateSystem target)
point
- Point coordinates.source
- Source coordinate system.target
- Target coordinate system.public static boolean addGeoid(java.lang.String path)
path
- Path to geoid file.