Class AbstractCRS

All Implemented Interfaces:
Serializable, CoordinateReferenceSystem, IdentifiedObject, ReferenceSystem
Direct Known Subclasses:
AbstractSingleCRS, DefaultCompoundCRS

public abstract class AbstractCRS extends AbstractReferenceSystem implements CoordinateReferenceSystem
Abstract coordinate reference system, usually defined by a coordinate system and a datum.
Since:
2.1
Author:
Martin Desruisseaux (IRD)
See Also:
  • Field Details

    • coordinateSystem

      protected final CoordinateSystem coordinateSystem
      The coordinate system.
  • Constructor Details

    • AbstractCRS

      public AbstractCRS(CoordinateReferenceSystem crs)
      Constructs a new coordinate reference system with the same values than the specified one. This copy constructor provides a way to wrap an arbitrary implementation into a Geotools one or a user-defined one (as a subclass), usually in order to leverage some implementation-specific API. This constructor performs a shallow copy, i.e. the properties are not cloned.
      Parameters:
      crs - The coordinate reference system to copy.
      Since:
      2.2
    • AbstractCRS

      public AbstractCRS(Map<String,?> properties, CoordinateSystem cs)
      Constructs a coordinate reference system from a set of properties. The properties are given unchanged to the super-class constructor.
      Parameters:
      properties - Set of properties. Should contains at least "name".
      cs - The coordinate system.
  • Method Details