Package org.geotools.referencing.datum
Class DefaultEngineeringDatum
Object
Formattable
AbstractIdentifiedObject
AbstractDatum
DefaultEngineeringDatum
- All Implemented Interfaces:
Serializable
,Datum
,EngineeringDatum
,IdentifiedObject
Defines the origin of an engineering coordinate reference system. An engineering datum is used in a region around
that origin. This origin can be fixed with respect to the earth (such as a defined point at a construction site), or
be a defined point on a moving vehicle (such as on a ship or satellite).
- Since:
- 2.1
- Author:
- Martin Desruisseaux (IRD)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DefaultEngineeringDatum
An engineering datum for unknown coordinate reference system.Fields inherited from class AbstractIdentifiedObject
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
Fields inherited from class Formattable
SINGLE_LINE
Fields inherited from interface Datum
ANCHOR_POINT_KEY, DOMAIN_OF_VALIDITY_KEY, REALIZATION_EPOCH_KEY, SCOPE_KEY
Fields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an engineering datum from a name.DefaultEngineeringDatum
(Map<String, ?> properties) Constructs an engineering datum from a set of properties.Constructs a new datum with the same values than the specified one. -
Method Summary
Modifier and TypeMethodDescriptionboolean
equals
(AbstractIdentifiedObject object, boolean compareMetadata) Compare this datum with the specified object for equality.protected String
Format the inner part of a Well Known Text (WKT) element.Methods inherited from class AbstractDatum
getAnchorPoint, getDomainOfValidity, getRealizationEpoch, getScope
Methods inherited from class AbstractIdentifiedObject
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, hashCode, nameMatches, nameMatches, nameMatches
Methods inherited from class Formattable
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT
Methods inherited from interface Datum
getAnchorPoint, getDomainOfValidity, getRealizationEpoch, getScope
Methods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getName, getRemarks, toWKT
-
Field Details
-
UNKNOWN
An engineering datum for unknown coordinate reference system. Such CRS are usually assumed cartesian, but will not have any transformation path to other CRS.
-
-
Constructor Details
-
DefaultEngineeringDatum
Constructs a new datum with the same values than the specified one. This copy constructor provides a way to wrap an arbitrary implementation into a Geotools one or a user-defined one (as a subclass), usually in order to leverage some implementation-specific API. This constructor performs a shallow copy, i.e. the properties are not cloned.- Since:
- 2.2
-
DefaultEngineeringDatum
Constructs an engineering datum from a name.- Parameters:
name
- The datum name.
-
DefaultEngineeringDatum
Constructs an engineering datum from a set of properties. The properties map is given unchanged to the super-class constructor.- Parameters:
properties
- Set of properties. Should contains at least"name"
.
-
-
Method Details
-
equals
Compare this datum with the specified object for equality.- Overrides:
equals
in classAbstractDatum
- Parameters:
object
- The object to compare tothis
.compareMetadata
-true
for performing a strict comparaison, orfalse
for comparing only properties relevant to transformations.- Returns:
true
if both objects are equal.
-
formatWKT
Format the inner part of a Well Known Text (WKT) element.- Overrides:
formatWKT
in classAbstractDatum
- Parameters:
formatter
- The formatter to use.- Returns:
- The WKT element name, which is "LOCAL_DATUM"
- See Also:
-