Class AbstractCRS
- Object
-
- AbstractCRS
-
- All Implemented Interfaces:
CoordinateReferenceSystem
- Direct Known Subclasses:
BoundCRS
,CompoundCRS
,GeographicCRS
,ProjectedCRS
,Transformation
,VerticalCRS
public abstract class AbstractCRS extends Object implements CoordinateReferenceSystem
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
Constructors Modifier Constructor Description protected
AbstractCRS()
Creates a new AbstractCRS with default values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getArea()
Gets the area of use for this coordinate reference system.List<Double>
getBbox()
Gets the bounding box that describes the area of use.Identifier
getId()
Gets the ID of the coordinate reference system.String
getName()
Gets the name of the coordinate reference system.String
getRemarks()
Gets the remarks about the coordinate reference system.String
getScope()
Gets the scope of the coordinate reference system.void
setArea(String area)
Sets the area of use for this coordinate reference system.void
setBbox(List<Double> bbox)
Sets the bounding box that describes the area of use.void
setId(Identifier id)
Sets the ID of the coordinate reference system.void
setName(String name)
Sets the name of the coordinate reference system.void
setRemarks(String remarks)
Sets the remarks about the coordinate reference system.void
setScope(String scope)
Sets the scope of the coordinate reference system.-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface CoordinateReferenceSystem
getType
-
-
-
-
Method Detail
-
getName
public String getName()
Gets the name of the coordinate reference system.- Specified by:
getName
in interfaceCoordinateReferenceSystem
- Returns:
- The CRS name
-
setName
public void setName(String name)
Sets the name of the coordinate reference system.- Parameters:
name
- The CRS name
-
getId
public Identifier 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:
getId
in interfaceCoordinateReferenceSystem
- Returns:
- The CRS Identifier
-
setId
public void setId(Identifier id)
Sets the ID of the coordinate reference system.- Parameters:
id
- The CRS Identifier
-
getScope
public String getScope()
Gets the scope of the coordinate reference system.- Specified by:
getScope
in interfaceCoordinateReferenceSystem
- Returns:
- The CRS scope
-
setScope
public void setScope(String scope)
Sets the scope of the coordinate reference system.- Parameters:
scope
- The CRS scope
-
getRemarks
public String getRemarks()
Gets the remarks about the coordinate reference system.- Specified by:
getRemarks
in interfaceCoordinateReferenceSystem
- Returns:
- The CRS remarks
-
setRemarks
public void setRemarks(String remarks)
Sets the remarks about the coordinate reference system.- Parameters:
remarks
- The CRS remarks
-
getArea
public String getArea()
Gets the area of use for this coordinate reference system.- Specified by:
getArea
in interfaceCoordinateReferenceSystem
- Returns:
- The area of use
-
setArea
public void setArea(String area)
Sets the area of use for this coordinate reference system.- Parameters:
area
- The area of use
-
getBbox
public List<Double> getBbox()
Gets the bounding box that describes the area of use.- Specified by:
getBbox
in interfaceCoordinateReferenceSystem
- Returns:
- The bounding box coordinates [west, south, east, north]
-
-