Class BoundCRS
Object
AbstractCRS
BoundCRS
- All Implemented Interfaces:
CoordinateReferenceSystem
Represents a Bound Coordinate Reference System in PROJJSON.
A bound CRS is a CRS that is related to another CRS (the source CRS) through a transformation to a target CRS. For example, a local engineering CRS can be bound to WGS84 to provide global context.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the source CRS that is being bound.Gets the target CRS that the source CRS is bound to.Gets the transformation between the source and target CRSs.getType()Gets the type of coordinate reference system.voidsetSourceCrs(CoordinateReferenceSystem sourceCrs) Sets the source CRS that is being bound.voidsetTargetCrs(CoordinateReferenceSystem targetCrs) Sets the target CRS that the source CRS is bound to.voidsetTransformation(Transformation transformation) Sets the transformation between the source and target CRSs.Methods inherited from class AbstractCRS
getArea, getBbox, getId, getName, getRemarks, getScope, setArea, setBbox, setId, setName, setRemarks, setScope
-
Constructor Details
-
BoundCRS
public BoundCRS()Creates a new BoundCRS with default values.
-
-
Method Details
-
getType
Gets the type of coordinate reference system.- Returns:
- Always "BoundCRS" for this implementation
-
getSourceCrs
Gets the source CRS that is being bound.- Returns:
- The source CRS
-
setSourceCrs
Sets the source CRS that is being bound.- Parameters:
sourceCrs- The source CRS
-
getTargetCrs
Gets the target CRS that the source CRS is bound to.- Returns:
- The target CRS
-
setTargetCrs
Sets the target CRS that the source CRS is bound to.- Parameters:
targetCrs- The target CRS
-
getTransformation
Gets the transformation between the source and target CRSs.- Returns:
- The transformation
-
setTransformation
Sets the transformation between the source and target CRSs.- Parameters:
transformation- The transformation
-