Class ProjectedCRS

Object
AbstractCRS
ProjectedCRS
All Implemented Interfaces:
CoordinateReferenceSystem

public class ProjectedCRS extends AbstractCRS
Represents a Projected Coordinate Reference System in PROJJSON.

A projected CRS is derived from a geographic CRS by applying a map projection to transform spherical coordinates into a plane. Coordinates are typically expressed in linear units (meters, feet, etc.).

Example PROJJSON representation:

 {
   "$schema": "https://proj.org/schemas/v0.7/projjson.schema.json",
   "type": "ProjectedCRS",
   "name": "WGS 84 / UTM zone 31N",
   "base_crs": {
     "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"
         }
       ]
     }
   },
   "conversion": {
     "name": "UTM zone 31N",
     "method": {
       "name": "Transverse Mercator",
       "id": {
         "authority": "EPSG",
         "code": 9807
       }
     },
     "parameters": [
       {
         "name": "Latitude of natural origin",
         "value": 0,
         "unit": "degree"
       },
       {
         "name": "Longitude of natural origin",
         "value": 3,
         "unit": "degree"
       },
       {
         "name": "Scale factor at natural origin",
         "value": 0.9996,
         "unit": "unity"
       },
       {
         "name": "False easting",
         "value": 500000,
         "unit": "metre"
       },
       {
         "name": "False northing",
         "value": 0,
         "unit": "metre"
       }
     ]
   },
   "coordinate_system": {
     "type": "Cartesian",
     "axes": [
       {
         "name": "Easting",
         "abbreviation": "E",
         "direction": "east",
         "unit": "metre"
       },
       {
         "name": "Northing",
         "abbreviation": "N",
         "direction": "north",
         "unit": "metre"
       }
     ]
   },
   "id": {
     "authority": "EPSG",
     "code": 32631
   }
 }
 
  • Constructor Details

    • ProjectedCRS

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

    • getType

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

      public CoordinateReferenceSystem getBaseCrs()
      Gets the base CRS that this projected CRS is derived from.
      Returns:
      The base CRS (typically a GeographicCRS)
    • setBaseCrs

      public void setBaseCrs(CoordinateReferenceSystem baseCrs)
      Sets the base CRS that this projected CRS is derived from.
      Parameters:
      baseCrs - The base CRS (typically a GeographicCRS)
    • getConversion

      public Conversion getConversion()
      Gets the conversion (map projection) used to derive this CRS from the base CRS.
      Returns:
      The conversion
    • setConversion

      public void setConversion(Conversion conversion)
      Sets the conversion (map projection) used to derive this CRS from the base CRS.
      Parameters:
      conversion - The conversion
    • 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