Package com.agisoft.metashape
Class CoordinateSystem
java.lang.Object
com.agisoft.metashape.CoordinateSystem
public class CoordinateSystem extends Object
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn -
Constructor Summary
Constructors Constructor Description CoordinateSystem()CoordinateSystem(long cPtr, boolean cMemoryOwn)CoordinateSystem(CoordinateSystem crs) -
Method Summary
Modifier and Type Method Description static booleanaddGeoid(String path)Register geoid model.voiddelete()protected voidfinalize()StringgetAuthority()Authority identifier of the coordinate system.static longgetCPtr(CoordinateSystem obj)StringgetProj4()Coordinate system definition in PROJ.4 format.StringgetWkt()Coordinate system definition in WKT format.booleaninit(String wkt)Initialize projection based on specified WKT definition or authority identifier.Matrix4x4dlocalframe(Vector3d point)Returns 4x4 transformation matrix to LSE coordinates at the given point.Vector3dproject(Vector3d point)Projects point from geocentric coordinates to projected geographic coordinate system.static Vector3dtransform(Vector3d point, CoordinateSystem source, CoordinateSystem target)Transform point coordinates between coordinate systems.Vector3dunproject(Vector3d point)Unprojects point from projected coordinates to geocentric coordinates.
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
CoordinateSystem
public CoordinateSystem(long cPtr, boolean cMemoryOwn) -
CoordinateSystem
public CoordinateSystem() -
CoordinateSystem
-
-
Method Details
-
getCPtr
-
finalize
protected void finalize() -
delete
public void delete() -
getAuthority
Authority identifier of the coordinate system. -
getWkt
Coordinate system definition in WKT format. -
getProj4
Coordinate system definition in PROJ.4 format. -
init
Initialize projection based on specified WKT definition or authority identifier.- Parameters:
wkt- WKT definition of coordinate system or authority identifier.
-
project
Projects point from geocentric coordinates to projected geographic coordinate system.- Parameters:
point- 3D point in geocentric coordinates.- Returns:
- 3D point in projected coordinates.
-
unproject
Unprojects point from projected coordinates to geocentric coordinates.- Parameters:
point- 3D point in projected coordinate system.- Returns:
- 3D point in geocentric coordinates.
-
localframe
Returns 4x4 transformation matrix to LSE coordinates at the given point.- Parameters:
point- Coordinates of the origin in the geocentric coordinates.- Returns:
- Transformation from geocentric coordinates to local coordinates.
-
transform
Transform point coordinates between coordinate systems.- Parameters:
point- Point coordinates.source- Source coordinate system.target- Target coordinate system.- Returns:
- Transformed point coordinates.
-
addGeoid
Register geoid model.- Parameters:
path- Path to geoid file.
-