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 Details

    • AbstractCRS

      protected AbstractCRS()
      Creates a new AbstractCRS with default values.
  • Method Details

    • getName

      public String getName()
      Gets the name of the coordinate reference system.
      Specified by:
      getName in interface CoordinateReferenceSystem
      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 interface CoordinateReferenceSystem
      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 interface CoordinateReferenceSystem
      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 interface CoordinateReferenceSystem
      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 interface CoordinateReferenceSystem
      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 interface CoordinateReferenceSystem
      Returns:
      The bounding box coordinates [west, south, east, north]
    • setBbox

      public void setBbox(List<Double> bbox)
      Sets the bounding box that describes the area of use.
      Parameters:
      bbox - The bounding box coordinates [west, south, east, north]