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 whichcoordinatesof same significance can be stated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classCoordinateReferenceSystem.AbsolutePositionThis class represents an absolute position (can be be extended)
-
Constructor Summary
Constructors Constructor Description CoordinateReferenceSystem()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract CcoordinatesOf(CoordinateReferenceSystem.AbsolutePosition position)Returns the coordinates in this reference system of the specified absolute position.Collection<String>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.CoordinateSystemgetCoordinateSystem()Returns the OpenGIS coordinate system associated to this coordinate reference system.Set<String>getIdentifiers()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.InternationalStringgetRemarks()OpenGIS® - 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.ExtentgetValidArea()OpenGIS® - 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.StringtoWKT()OpenGIS® - Returns a Well Known Text (WKT) for this object.
-
-
-
Method Detail
-
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
protected abstract C coordinatesOf(CoordinateReferenceSystem.AbsolutePosition position)
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
public Collection<String> 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
public Set<String> 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
public String toWKT() throws UnsupportedOperationException
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).
-
-