Package com.agisoft.metashape
Class CoordinateSystem
java.lang.Object
com.agisoft.metashape.CoordinateSystem
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanRegister geoid model.static Matrix4x4ddatumTransform(CoordinateSystem source, CoordinateSystem target) Coordinate transformation from source to target coordinate system datum.voiddelete()protected voidfinalize()Authority identifier of the coordinate system.static longgetCPtr(CoordinateSystem obj) getProj4()Coordinate system definition in PROJ.4 format.getWkt()Coordinate system definition in WKT format.booleanInitialize projection based on specified WKT definition or authority identifier.localframe(Vector3d point) Returns 4x4 transformation matrix to LSE coordinates at the given point.Construct geocentric coordinate system using coordinate system datum.Construct geographic coordinate system using coordinate system datum.Projects point from geocentric coordinates to projected geographic coordinate system.static Vector3dtransform(Vector3d point, CoordinateSystem source, CoordinateSystem target) Transform point coordinates between coordinate systems.static Matrix4x4dtransformationMatrix(Vector3d point, CoordinateSystem source, CoordinateSystem target) Local approximation of coordinate transformation from source to target coordinate system at the given 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.
-
makeGeographic
Construct geographic coordinate system using coordinate system datum.- Returns:
- Geographic coordinate system, may be null.
-
makeGeocentric
Construct geocentric coordinate system using coordinate system datum.- Returns:
- Geocentric coordinate system, may be null.
-
datumTransform
Coordinate transformation from source to target coordinate system datum.- Parameters:
source- Source coordinate system.target- Target coordinate system.- Returns:
- Transformation matrix, may be null.
-
transform
Transform point coordinates between coordinate systems.- Parameters:
point- Point coordinates.source- Source coordinate system.target- Target coordinate system.- Returns:
- Transformed point coordinates.
-
transformationMatrix
public static Matrix4x4d transformationMatrix(Vector3d point, CoordinateSystem source, CoordinateSystem target) Local approximation of coordinate transformation from source to target coordinate system at the given point.- Parameters:
point- Point coordinates.source- Source coordinate system.target- Target coordinate system.- Returns:
- Transformation matrix.
-
addGeoid
Register geoid model.- Parameters:
path- Path to geoid file.
-