Class CoordinateReferenceSystem<C extends Coordinates<?>>
java.lang.Object
org.jscience.geography.coordinates.crs.CoordinateReferenceSystem<C>
- All Implemented Interfaces:
org.opengis.referencing.crs.CoordinateReferenceSystem,org.opengis.referencing.IdentifiedObject,org.opengis.referencing.ReferenceSystem
- Direct Known Subclasses:
CompoundCRS,GeocentricCRS,GeographicCRS,ProjectedCRS,TemporalCRS,VerticalCRS
public abstract class CoordinateReferenceSystem<C extends Coordinates<?>>
extends Object
implements org.opengis.referencing.crs.CoordinateReferenceSystem
This class represents an arbitrary system of reference for which
coordinates of same significance can be stated.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classThis class represents an absolute position (can be be extended) -
Field Summary
Fields inherited from interface org.opengis.referencing.IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEYFields inherited from interface org.opengis.referencing.ReferenceSystem
SCOPE_KEY, VALID_AREA_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract CReturns the coordinates in this reference system of the specified absolute position.getAlias()OpenGIS® - An alternative name by which this object is identified.<T extends Coordinates<?>>
CoordinatesConverter<C,T> getConverterTo(CoordinateReferenceSystem<T> that) Returns the converter between this coordinate reference system and the one specified.abstract org.opengis.referencing.cs.CoordinateSystemReturns the OpenGIS coordinate system associated to this coordinate reference system.OpenGIS® - An identifier which references elsewhere the object's defining information.org.opengis.metadata.IdentifiergetName()OpenGIS® - The primary name by which this object is identified.org.opengis.util.InternationalStringOpenGIS® - Comments on or information about this object, including data source information.org.opengis.util.InternationalStringgetScope()OpenGIS® - Description of domain of usage, or limitations of usage, for which this (coordinate) reference system object is valid.org.opengis.metadata.extent.ExtentOpenGIS® - Area for which the (coordinate) reference system is valid.protected abstract CoordinateReferenceSystem.AbsolutePositionpositionOf(C coordinates, CoordinateReferenceSystem.AbsolutePosition position) Returns the absolute position from the coordinates in this reference system.toWKT()OpenGIS® - Returns a Well Known Text (WKT) for this object.
-
Constructor Details
-
CoordinateReferenceSystem
public CoordinateReferenceSystem()
-
-
Method Details
-
getConverterTo
public <T extends Coordinates<?>> CoordinatesConverter<C,T> getConverterTo(CoordinateReferenceSystem<T> that) Returns the converter between this coordinate reference system and the one specified.- Parameters:
that- the coordinate reference system to convert to.- Returns:
- the corresponding coordinates converter.
- Throws:
ConversionException- if the conversion is not possible (e.g. geographic to temporal).
-
coordinatesOf
Returns the coordinates in this reference system of the specified absolute position.- Parameters:
position- the absolute position for which the coordinates in this reference system is returned.- Returns:
- the coordinates for the specified absolute position.
- Throws:
ConversionException- if a conversion error occurs.
-
positionOf
protected abstract CoordinateReferenceSystem.AbsolutePosition positionOf(C coordinates, CoordinateReferenceSystem.AbsolutePosition position) Returns the absolute position from the coordinates in this reference system. This update may require information already supplied by the position. For example, the height for a pressure altitude might depends upon the latitude/longitude and the time.- Parameters:
coordinates- the coordinates for which the absolute position is adjusted.position- the position object to update.- Returns:
- the corresponding absolute position.
- Throws:
ConversionException- if a conversion error occurs.
-
getCoordinateSystem
public abstract org.opengis.referencing.cs.CoordinateSystem getCoordinateSystem()Returns the OpenGIS coordinate system associated to this coordinate reference system.- Specified by:
getCoordinateSystemin interfaceorg.opengis.referencing.crs.CoordinateReferenceSystem- Returns:
- the corresponding coordinate system.
-
getValidArea
public org.opengis.metadata.extent.Extent getValidArea()OpenGIS® - Area for which the (coordinate) reference system is valid.- Specified by:
getValidAreain interfaceorg.opengis.referencing.ReferenceSystem- Returns:
- coordinate reference system valid area,
or
null(default) if not available.
-
getScope
public org.opengis.util.InternationalString getScope()OpenGIS® - Description of domain of usage, or limitations of usage, for which this (coordinate) reference system object is valid.- Specified by:
getScopein interfaceorg.opengis.referencing.ReferenceSystem
-
getName
public org.opengis.metadata.Identifier getName()OpenGIS® - The primary name by which this object is identified.- Specified by:
getNamein interfaceorg.opengis.referencing.IdentifiedObject- Returns:
- an identifier holding the class name.
-
getAlias
OpenGIS® - An alternative name by which this object is identified.- Specified by:
getAliasin interfaceorg.opengis.referencing.IdentifiedObject- Returns:
- The aliases, or an empty collection if there is none.
-
getIdentifiers
OpenGIS® - An identifier which references elsewhere the object's defining information. Alternatively an identifier by which this object can be referenced.- Specified by:
getIdentifiersin interfaceorg.opengis.referencing.IdentifiedObject- Returns:
- This object identifiers, or an empty set if there is none.
-
getRemarks
public org.opengis.util.InternationalString getRemarks()OpenGIS® - Comments on or information about this object, including data source information.- Specified by:
getRemarksin interfaceorg.opengis.referencing.IdentifiedObject- Returns:
null(default).
-
toWKT
OpenGIS® - Returns a Well Known Text (WKT) for this object. This operation may fails if an object is too complex for the WKT format capability (for example an engineering CRS} with different unit for each axis).- Specified by:
toWKTin interfaceorg.opengis.referencing.IdentifiedObject- Returns:
- The Well Know Text for this object.
- Throws:
UnsupportedOperationException- If this object can't be formatted as WKT (default).
-