Class CoordinateSystem

java.lang.Object
com.agisoft.metashape.CoordinateSystem

public class CoordinateSystem
extends Object
  • Field Details

    • swigCMemOwn

      protected transient boolean swigCMemOwn
  • Constructor Details

    • CoordinateSystem

      public CoordinateSystem​(long cPtr, boolean cMemoryOwn)
    • CoordinateSystem

      public CoordinateSystem()
    • CoordinateSystem

      public CoordinateSystem​(CoordinateSystem crs)
  • Method Details

    • getCPtr

      public static long getCPtr​(CoordinateSystem obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class Object
    • delete

      public void delete()
    • getAuthority

      public String getAuthority()
      Authority identifier of the coordinate system.
    • getWkt

      public String getWkt()
      Coordinate system definition in WKT format.
    • getProj4

      public String getProj4()
      Coordinate system definition in PROJ.4 format.
    • init

      public boolean init​(String wkt)
      Initialize projection based on specified WKT definition or authority identifier.
      Parameters:
      wkt - WKT definition of coordinate system or authority identifier.
    • project

      public Vector3d project​(Vector3d point)
      Projects point from geocentric coordinates to projected geographic coordinate system.
      Parameters:
      point - 3D point in geocentric coordinates.
      Returns:
      3D point in projected coordinates.
    • unproject

      public Vector3d unproject​(Vector3d point)
      Unprojects point from projected coordinates to geocentric coordinates.
      Parameters:
      point - 3D point in projected coordinate system.
      Returns:
      3D point in geocentric coordinates.
    • localframe

      public Matrix4x4d localframe​(Vector3d point)
      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

      public static Vector3d transform​(Vector3d point, CoordinateSystem source, CoordinateSystem target)
      Transform point coordinates between coordinate systems.
      Parameters:
      point - Point coordinates.
      source - Source coordinate system.
      target - Target coordinate system.
      Returns:
      Transformed point coordinates.
    • addGeoid

      public static boolean addGeoid​(String path)
      Register geoid model.
      Parameters:
      path - Path to geoid file.