Interface GeoProjection

All Superinterfaces:
Serializable, scala.Serializable

public interface GeoProjection extends scala.Serializable
Converts WGS84 Earth coordinates to planar 2D coordinates and vice-versa.

Note:
Different implementations may have different limitations regarding the range of the accepted GeoCoordinates and the type of operations and approximations on the projected coordinates.

See also GeoCoordinateOperations.

  • Method Details

    • from

      <CGC, C> GeoCoordinate from(CGC center, C coord, GeoCoordinateOperations<CGC> evidence$4, CoordinateOperations<C> evidence$5)
      Project Cartesian coordinates (in meters) on the Earth surface, around a WGS84 point.

      Parameters:
      center - The center of the projection
      coord - The point to be projected (in meters)
      Returns:
      A projected point in WGS84 coordinates
      Type Parameters:
      CGC The type of the center of the projection, C The type of the point to be projected
    • to

      <CGC, GC> Coordinate2D to(CGC center, GC geoCoord, GeoCoordinateOperations<CGC> evidence$1, GeoCoordinateOperations<GC> evidence$2)
      Project WGS84 to Cartesian coordinates (in meters).

      Parameters:
      center - The center of the projection
      geoCoord - The point to be projected
      Returns:
      A projected point in Cartesian coordinates (in meters)
      Type Parameters:
      CGC The type of the center of the projection, GC The type of the point to be projected
    • toCenter

      <GC> Coordinate2D toCenter(GC center, GeoCoordinateOperations<GC> evidence$3)
      Projects a point to Cartesian coordinates using that same point as the center.