Class AbstractCRS
Object
AbstractCRS
- All Implemented Interfaces:
CoordinateReferenceSystem
- Direct Known Subclasses:
BoundCRS,CompoundCRS,GeographicCRS,ProjectedCRS,Transformation,VerticalCRS
Abstract base class for all coordinate reference system implementations.
This class implements common properties defined in the PROJJSON schema that are shared across all CRS types.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new AbstractCRS with default values. -
Method Summary
Modifier and TypeMethodDescriptiongetArea()Gets the area of use for this coordinate reference system.getBbox()Gets the bounding box that describes the area of use.getId()Gets the ID of the coordinate reference system.getName()Gets the name of the coordinate reference system.Gets the remarks about the coordinate reference system.getScope()Gets the scope of the coordinate reference system.voidSets the area of use for this coordinate reference system.voidSets the bounding box that describes the area of use.voidsetId(Identifier id) Sets the ID of the coordinate reference system.voidSets the name of the coordinate reference system.voidsetRemarks(String remarks) Sets the remarks about the coordinate reference system.voidSets the scope of the coordinate reference system.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CoordinateReferenceSystem
getType
-
Constructor Details
-
AbstractCRS
protected AbstractCRS()Creates a new AbstractCRS with default values.
-
-
Method Details
-
getName
Gets the name of the coordinate reference system.- Specified by:
getNamein interfaceCoordinateReferenceSystem- Returns:
- The CRS name
-
setName
Sets the name of the coordinate reference system.- Parameters:
name- The CRS name
-
getId
Gets the ID of the coordinate reference system.According to the PROJJSON v0.7 schema, ID is an Identifier object with required "authority" and "code" properties.
- Specified by:
getIdin interfaceCoordinateReferenceSystem- Returns:
- The CRS Identifier
-
setId
Sets the ID of the coordinate reference system.- Parameters:
id- The CRS Identifier
-
getScope
Gets the scope of the coordinate reference system.- Specified by:
getScopein interfaceCoordinateReferenceSystem- Returns:
- The CRS scope
-
setScope
Sets the scope of the coordinate reference system.- Parameters:
scope- The CRS scope
-
getRemarks
Gets the remarks about the coordinate reference system.- Specified by:
getRemarksin interfaceCoordinateReferenceSystem- Returns:
- The CRS remarks
-
setRemarks
Sets the remarks about the coordinate reference system.- Parameters:
remarks- The CRS remarks
-
getArea
Gets the area of use for this coordinate reference system.- Specified by:
getAreain interfaceCoordinateReferenceSystem- Returns:
- The area of use
-
setArea
Sets the area of use for this coordinate reference system.- Parameters:
area- The area of use
-
getBbox
Gets the bounding box that describes the area of use.- Specified by:
getBboxin interfaceCoordinateReferenceSystem- Returns:
- The bounding box coordinates [west, south, east, north]
-
setBbox
Sets the bounding box that describes the area of use.- Parameters:
bbox- The bounding box coordinates [west, south, east, north]
-