|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFormattableObject
AbstractIdentifiedObject
AbstractReferenceSystem
AbstractCRS
AbstractSingleCRS
DefaultGeocentricCRS
@Immutable public class DefaultGeocentricCRS
A 3D coordinate reference system with the origin at the approximate centre of mass of the earth. A geocentric CRS deals with the earth's curvature by taking a 3D spatial view, which obviates the need to model the earth's curvature.
| Used with CS type(s) |
|---|
Cartesian,
Spherical
|
| referencing/geotk-referencing (download) | View source code for this class |
| Field Summary | |
|---|---|
static DefaultGeocentricCRS |
CARTESIAN
The default geocentric CRS with a Cartesian coordinate system. |
static DefaultGeocentricCRS |
SPHERICAL
The default geocentric CRS with a spherical coordinate system. |
| Fields inherited from class FormattableObject |
|---|
EPSG, GEOTIFF, INTERNAL, OGC, SINGLE_LINE |
| Fields inherited from interface ReferenceSystem |
|---|
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY |
| Fields inherited from interface IdentifiedObject |
|---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
| Constructor Summary | |
|---|---|
DefaultGeocentricCRS(GeocentricCRS crs)
Constructs a new geocentric CRS with the same values than the specified one. |
|
DefaultGeocentricCRS(Map<String,?> properties,
GeodeticDatum datum,
CartesianCS cs)
Constructs a geographic CRS from a set of properties. |
|
DefaultGeocentricCRS(Map<String,?> properties,
GeodeticDatum datum,
SphericalCS cs)
Constructs a geographic CRS from a set of properties. |
|
DefaultGeocentricCRS(String name,
GeodeticDatum datum,
CartesianCS cs)
Constructs a geocentric CRS from a name. |
|
DefaultGeocentricCRS(String name,
GeodeticDatum datum,
SphericalCS cs)
Constructs a geocentric CRS from a name. |
|
| Method Summary | |
|---|---|
static DefaultGeocentricCRS |
castOrCopy(GeocentricCRS object)
Returns a Geotk CRS implementation with the same values than the given arbitrary implementation. |
String |
formatWKT(Formatter formatter)
Formats the inner part of a Well Known Text (WKT) element. |
GeodeticDatum |
getDatum()
Returns the datum. |
static DefaultGeocentricCRS |
wrap(GeocentricCRS object)
Deprecated. Renamed castOrCopy. |
| Methods inherited from class AbstractSingleCRS |
|---|
computeHashCode, equals, getAxis, getDimension |
| Methods inherited from class AbstractCRS |
|---|
distance, getCoordinateSystem |
| Methods inherited from class AbstractReferenceSystem |
|---|
getDomainOfValidity, getScope |
| Methods inherited from class AbstractIdentifiedObject |
|---|
equals, getAlias, getIdentifier, getIdentifiers, getName, getName, getRemarks, hashCode, nameMatches |
| Methods inherited from class FormattableObject |
|---|
getDefaultIndentation, print, setDefaultIndentation, toString, toWKT, toWKT, toWKT |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface GeocentricCRS |
|---|
getCoordinateSystem |
| Methods inherited from interface ReferenceSystem |
|---|
getDomainOfValidity, getScope |
| Methods inherited from interface IdentifiedObject |
|---|
getAlias, getIdentifiers, getName, getRemarks, toWKT |
| Field Detail |
|---|
public static final DefaultGeocentricCRS CARTESIAN
public static final DefaultGeocentricCRS SPHERICAL
| Constructor Detail |
|---|
public DefaultGeocentricCRS(GeocentricCRS crs)
crs - The coordinate reference system to copy.
public DefaultGeocentricCRS(String name,
GeodeticDatum datum,
CartesianCS cs)
name - The name.datum - The datum.cs - The coordinate system.
public DefaultGeocentricCRS(String name,
GeodeticDatum datum,
SphericalCS cs)
name - The name.datum - The datum.cs - The coordinate system.
public DefaultGeocentricCRS(Map<String,?> properties,
GeodeticDatum datum,
CartesianCS cs)
properties - Set of properties. Should contains at least "name".datum - The datum.cs - The coordinate system.
public DefaultGeocentricCRS(Map<String,?> properties,
GeodeticDatum datum,
SphericalCS cs)
properties - Set of properties. Should contains at least "name".datum - The datum.cs - The coordinate system.| Method Detail |
|---|
public static DefaultGeocentricCRS castOrCopy(GeocentricCRS object)
null, then this method returns null.
Otherwise if the given object is already a Geotk implementation, then the given object is
returned unchanged. Otherwise a new Geotk implementation is created and initialized to the
attribute values of the given object.
object - The object to get as a Geotk implementation, or null if none.
null if the argument was null.@Deprecated public static DefaultGeocentricCRS wrap(GeocentricCRS object)
castOrCopy.
object - The object to get as a Geotk implementation, or null if none.
public GeodeticDatum getDatum()
getDatum in interface GeodeticCRSgetDatum in interface SingleCRSgetDatum in class AbstractSingleCRSpublic String formatWKT(Formatter formatter)
formatWKT in interface FormattableformatWKT in class AbstractCRSformatter - The formatter to use.
"GEOCCS".FormattableObject.toWKT(),
FormattableObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||