Class GeographicCRS

Object
AbstractCRS
GeographicCRS
All Implemented Interfaces:
CoordinateReferenceSystem

public class GeographicCRS extends AbstractCRS
Represents a Geographic Coordinate Reference System in PROJJSON.

A geographic CRS is a coordinate reference system based on an ellipsoidal approximation of the Earth's surface. Coordinates are expressed in angular units (degrees or radians).

Example PROJJSON representation:

 {
   "$schema": "https://proj.org/schemas/v0.7/projjson.schema.json",
   "type": "GeographicCRS",
   "name": "WGS 84",
   "datum": {
     "type": "GeodeticReferenceFrame",
     "name": "World Geodetic System 1984",
     "ellipsoid": {
       "name": "WGS 84",
       "semi_major_axis": 6378137,
       "inverse_flattening": 298.257223563
     }
   },
   "coordinate_system": {
     "type": "ellipsoidal",
     "axes": [
       {
         "name": "Geodetic latitude",
         "abbreviation": "Lat",
         "direction": "north",
         "unit": "degree"
       },
       {
         "name": "Geodetic longitude",
         "abbreviation": "Lon",
         "direction": "east",
         "unit": "degree"
       }
     ]
   },
   "id": {
     "authority": "EPSG",
     "code": 4326
   }
 }
 
  • Constructor Details

    • GeographicCRS

      public GeographicCRS()
      Creates a new GeographicCRS with default values.
  • Method Details

    • getType

      public String getType()
      Gets the type of coordinate reference system.
      Returns:
      Always "GeographicCRS" for this implementation
    • getDatum

      public GeodeticReferenceFrame getDatum()
      Gets the geodetic datum defining this geographic CRS.
      Returns:
      The geodetic reference frame
    • setDatum

      public void setDatum(GeodeticReferenceFrame datum)
      Sets the geodetic datum defining this geographic CRS.
      Parameters:
      datum - The geodetic reference frame
    • getCoordinateSystem

      public CoordinateSystem getCoordinateSystem()
      Gets the coordinate system that describes how coordinates are expressed.
      Returns:
      The coordinate system
    • setCoordinateSystem

      public void setCoordinateSystem(CoordinateSystem coordinateSystem)
      Sets the coordinate system that describes how coordinates are expressed.
      Parameters:
      coordinateSystem - The coordinate system