Object
AbstractCRS
CompoundCRS
All Implemented Interfaces:
CoordinateReferenceSystem

public class CompoundCRS extends AbstractCRS
Represents a Compound Coordinate Reference System in PROJJSON.

A compound CRS is composed of multiple independent coordinate reference systems, typically combining horizontal and vertical components. For example, a 3D CRS might combine a 2D geographic/projected CRS with a vertical CRS.

Example PROJJSON representation:

 {
   "$schema": "https://proj.org/schemas/v0.7/projjson.schema.json",
   "type": "CompoundCRS",
   "name": "NAD83 / UTM zone 17N + NAVD88 height",
   "components": [
     {
       "type": "ProjectedCRS",
       "name": "NAD83 / UTM zone 17N",
       ...
     },
     {
       "type": "VerticalCRS",
       "name": "NAVD88 height",
       ...
     }
   ],
   "id": {
     "authority": "EPSG",
     "code": 6349
   }
 }
 
  • Constructor Details

    • CompoundCRS

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

    • getType

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

      public List<CoordinateReferenceSystem> getComponents()
      Gets the component CRSs that make up this compound CRS.
      Returns:
      The list of component CRSs
    • setComponents

      public void setComponents(List<CoordinateReferenceSystem> components)
      Sets the component CRSs that make up this compound CRS.
      Parameters:
      components - The list of component CRSs