Class AbstractCRS

All Implemented Interfaces:
Serializable, Formattable, Deprecable, Lenient­Comparable, Coordinate­Reference­System, Identified­Object, Reference­System
Direct Known Subclasses:
Default­Compound­CRS, Default­Derived­CRS, Default­Engineering­CRS, Default­Geocentric­CRS, Default­Geographic­CRS, Default­Image­CRS, Default­Parametric­CRS, Default­Projected­CRS, Default­Temporal­CRS, Default­Vertical­CRS

public class AbstractCRS extends AbstractReferenceSystem implements CoordinateReferenceSystem
Coordinate reference system, defined by a coordinate system and (usually) a datum. A coordinate reference system (CRS) consists of an ordered sequence of coordinate system axes that are related to the earth through the datum. Most coordinate reference system do not move relative to the earth, except for engineering coordinate reference systems defined on moving platforms such as cars, ships, aircraft, and spacecraft.

Coordinate reference systems can have an arbitrary number of dimensions. The actual dimension of a given instance can be determined as below:

int dimension = crs.getCoordinateSystem().getDimension();
However, most subclasses restrict the allowed number of dimensions.


This class is conceptually abstract, even if it is technically possible to instantiate it. Typical applications should create instances of the most specific subclass prefixed by Default instead. An exception to this rule may occur when it is not possible to identify the exact CRS type.

Immutability and thread safety

This base class is immutable and thus thread-safe if the property values (not necessarily the map itself) given to the constructor are also immutable. Most SIS subclasses and related classes are immutable under similar conditions. This means that unless otherwise noted in the javadoc, Coordinate­Reference­System instances created using only SIS factories and static constants can be shared by many objects and passed between threads without synchronization.
See Also: