Class CompoundCRS
Object
AbstractCRS
CompoundCRS
- All Implemented Interfaces:
CoordinateReferenceSystem
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the component CRSs that make up this compound CRS.getType()Gets the type of coordinate reference system.voidsetComponents(List<CoordinateReferenceSystem> components) Sets the component CRSs that make up this compound CRS.Methods inherited from class AbstractCRS
getArea, getBbox, getId, getName, getRemarks, getScope, setArea, setBbox, setId, setName, setRemarks, setScope
-
Constructor Details
-
CompoundCRS
public CompoundCRS()Creates a new CompoundCRS with default values.
-
-
Method Details
-
getType
Gets the type of coordinate reference system.- Returns:
- Always "CompoundCRS" for this implementation
-
getComponents
Gets the component CRSs that make up this compound CRS.- Returns:
- The list of component CRSs
-
setComponents
Sets the component CRSs that make up this compound CRS.- Parameters:
components- The list of component CRSs
-