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.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.Projects point from geocentric coordinates to projected geographic coordinate system.static Vector3dtransform(Vector3d point, CoordinateSystem source, CoordinateSystem target)Transform point coordinates between coordinate systems.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.
-