public class DefaultGeocentricCRS extends AbstractCRS implements GeocentricCRS
Used with datum type:
Geodetic.
Used with coordinate system types:
Cartesian or
Spherical.
GeocentricCRS from one of the static convenience shortcuts listed in
CommonCRS.geocentric().GeocentricCRS from an identifier in a database by invoking
GeodeticAuthorityFactory.createGeocentricCRS(String).GeocentricCRS by invoking the CRSFactory.createGeocentricCRS(…) method
(implemented for example by GeodeticObjectFactory).GeocentricCRS by invoking the
constructor.GeodeticDatum datum = CommonCRS.WGS84.geocentric();
GeodeticAuthorityFactory.createGeocentricCRS(String),
Serialized FormDefined in the sis-referencing module
DEPRECATED_KEY, LOCALE_KEYDOMAIN_OF_VALIDITY_KEY, SCOPE_KEYALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY| Modifier | Constructor and Description |
|---|---|
protected |
DefaultGeocentricCRS(GeocentricCRS crs)
Constructs a new coordinate reference system with the same values than the specified one.
|
|
DefaultGeocentricCRS(Map<String,?> properties,
GeodeticDatum datum,
CartesianCS cs)
Creates a coordinate reference system from the given properties, datum and coordinate system.
|
|
DefaultGeocentricCRS(Map<String,?> properties,
GeodeticDatum datum,
SphericalCS cs)
Creates a coordinate reference system from the given properties, datum and coordinate system.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultGeocentricCRS |
castOrCopy(GeocentricCRS object)
Returns a SIS coordinate reference system implementation with the same values than the given
arbitrary implementation.
|
DefaultGeocentricCRS |
forConvention(AxesConvention convention)
Returns a coordinate reference system equivalent to this one but with axes rearranged according the given
convention.
|
protected String |
formatTo(Formatter formatter)
Formats this CRS as a Well Known Text
GeodeticCRS[…] element. |
GeodeticDatum |
getDatum()
Returns the geodetic datum associated to this geocentric CRS.
|
Class<? extends GeocentricCRS> |
getInterface()
Returns the GeoAPI interface implemented by this class.
|
castOrCopy, computeHashCode, equals, getCoordinateSystemgetDomainOfValidity, getScopecastOrCopy, equals, getAlias, getDescription, getIdentifiers, getName, getRemarks, hashCode, isDeprecated, isHeuristicMatchForNameprint, toString, toString, toWKTclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCoordinateSystemgetDomainOfValidity, getScopegetAlias, getIdentifiers, getName, getRemarks, toWKTpublic DefaultGeocentricCRS(Map<String,?> properties, GeodeticDatum datum, CartesianCS cs)
| Property name | Value type | Returned by |
|---|---|---|
| "name" | ReferenceIdentifier or String |
AbstractIdentifiedObject.getName() |
| "alias" | GenericName or CharSequence (optionally as array) |
AbstractIdentifiedObject.getAlias() |
| "identifiers" | ReferenceIdentifier (optionally as array) |
AbstractIdentifiedObject.getIdentifiers() |
| "remarks" | InternationalString or String |
AbstractIdentifiedObject.getRemarks() |
| "domainOfValidity" | Extent |
AbstractReferenceSystem.getDomainOfValidity() |
| "scope" | InternationalString or String |
AbstractReferenceSystem.getScope() |
properties - the properties to be given to the coordinate reference system.datum - the datum.cs - the coordinate system, which must be three-dimensional.GeodeticObjectFactory.createGeocentricCRS(Map, GeodeticDatum, CartesianCS)public DefaultGeocentricCRS(Map<String,?> properties, GeodeticDatum datum, SphericalCS cs)
properties - the properties to be given to the coordinate reference system.datum - the datum.cs - the coordinate system.GeodeticObjectFactory.createGeocentricCRS(Map, GeodeticDatum, SphericalCS)protected DefaultGeocentricCRS(GeocentricCRS crs)
This constructor performs a shallow copy, i.e. the properties are not cloned.
crs - the coordinate reference system to copy.castOrCopy(GeocentricCRS)public static DefaultGeocentricCRS castOrCopy(GeocentricCRS object)
null, then this method returns null.
Otherwise if the given object is already a SIS implementation, then the given object is returned unchanged.
Otherwise a new SIS implementation is created and initialized to the attribute values of the given object.object - the object to get as a SIS implementation, or null if none.null if the argument was null.public Class<? extends GeocentricCRS> getInterface()
GeocentricCRS.class.
GeocentricCRS
sub-interface. Overriding possibility is left mostly for implementors who wish to extend GeoAPI with their
own set of interfaces.GeocentricCRS.class or a user-defined sub-interface.public final GeodeticDatum getDatum()
getDatum in interface GeodeticCRSgetDatum in interface SingleCRSpublic DefaultGeocentricCRS forConvention(AxesConvention convention)
this.forConvention in class AbstractCRSconvention - the axes convention for which a coordinate reference system is desired.this).AbstractCS.forConvention(AxesConvention)protected String formatTo(Formatter formatter)
GeodeticCRS[…] element.
GeodeticCRS["Geocentric",
Datum["World Geodetic System 1984",
Ellipsoid["WGS84", 6378137.0, 298.257223563, LengthUnit["metre", 1]]],
PrimeMeridian["Greenwich", 0.0, AngleUnit["degree", 0.017453292519943295]],
CS["Cartesian", 3],
Axis["(X)", geocentricX],
Axis["(Y)", geocentricY],
Axis["(Z)", geocentricZ],
LengthUnit["metre", 1]]
Same coordinate reference system using WKT 1. Note that axis directions are totally different.
GEOCCS["Geocentric",
DATUM["World Geodetic System 1984",
SPHEROID["WGS84", 6378137.0, 298.257223563]],
PRIMEM["Greenwich", 0.0],
UNIT["metre", 1],
AXIS["X", OTHER],
AXIS["Y", EAST],
AXIS["Z", NORTH]]
formatter - the formatter where to format the inner content of this WKT element."GeodeticCRS" (WKT 2) or "GeocCS" (WKT 1).Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.