public class DefaultEngineeringCRS extends AbstractSingleCRS implements EngineeringCRS
Used with CS type(s) |
---|
Cartesian ,
Affine ,
Ellipsoidal ,
Spherical ,
Cylindrical ,
Polar ,
Vertical ,
Linear
|
Modifier and Type | Field and Description |
---|---|
static DefaultEngineeringCRS |
CARTESIAN_2D
|
static DefaultEngineeringCRS |
CARTESIAN_3D
|
static DefaultEngineeringCRS |
GENERIC_2D
|
static DefaultEngineeringCRS |
GENERIC_3D
|
protected boolean |
wildcard
Marks the CRS as a wildcard one.
|
datum
coordinateSystem
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
SINGLE_LINE
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Constructor and Description |
---|
DefaultEngineeringCRS(EngineeringCRS crs)
Constructs a new enginnering CRS with the same values than the specified one.
|
DefaultEngineeringCRS(Map<String,?> properties,
EngineeringDatum datum,
CoordinateSystem cs)
Constructs an engineering CRS from a set of properties.
|
DefaultEngineeringCRS(Map<String,?> properties,
EngineeringDatum datum,
CoordinateSystem cs,
boolean wildcard)
Constructs an engineering CRS from a set of properties.
|
DefaultEngineeringCRS(String name,
EngineeringDatum datum,
CoordinateSystem cs)
Constructs an engineering CRS from a name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(AbstractIdentifiedObject object,
boolean compareMetadata)
Compares the specified object to this CRS for equality.
|
protected String |
formatWKT(Formatter formatter)
Format the inner part of a Well
Known Text (WKT) element.
|
EngineeringDatum |
getDatum()
Returns the datum.
|
int |
hashCode()
Returns a hash value for this derived CRS.
|
boolean |
isWildcard()
Returns true if this is a wildcard CRS, that is, one that will transform from and to any
other CRS using the identity transformation
|
getAxis, getDimension
distance, getCoordinateSystem
getDomainOfValidity, getScope, getValidArea
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatches
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT
getCoordinateSystem
getDomainOfValidity, getScope
getAlias, getIdentifiers, getName, getRemarks, toWKT
protected boolean wildcard
public static final DefaultEngineeringCRS CARTESIAN_2D
public static final DefaultEngineeringCRS CARTESIAN_3D
public static final DefaultEngineeringCRS GENERIC_2D
CARTESIAN_2D
, this coordinate system is treated specially by the
default coordinate operation factory with loose transformation rules: if no transformation path were
found (for example through a derived CRS), then the
transformation from this CRS to any CRS with a compatible number of dimensions is assumed to
be the identity transform. This CRS is usefull as a kind of wildcard when no CRS were
explicitly specified.public static final DefaultEngineeringCRS GENERIC_3D
CARTESIAN_3D
, this
coordinate system is treated specially by the default coordinate operation
factory with loose transformation rules: if no transformation path were found (for example
through a derived CRS), then the transformation from this CRS
to any CRS with a compatible number of dimensions is assumed to be the identity transform.
This CRS is usefull as a kind of wildcard when no CRS were explicitly specified.public DefaultEngineeringCRS(EngineeringCRS crs)
crs
- The CRS to copy.public DefaultEngineeringCRS(String name, EngineeringDatum datum, CoordinateSystem cs)
name
- The name.datum
- The datum.cs
- The coordinate system.public DefaultEngineeringCRS(Map<String,?> properties, EngineeringDatum datum, CoordinateSystem cs)
properties
- Set of properties. Should contains at least "name"
.datum
- The datum.cs
- The coordinate system.public DefaultEngineeringCRS(Map<String,?> properties, EngineeringDatum datum, CoordinateSystem cs, boolean wildcard)
properties
- Set of properties. Should contains at least "name"
.datum
- The datum.cs
- The coordinate system.wildcard
- When true the CRS will transform to any other CRS with the identity transformpublic EngineeringDatum getDatum()
getDatum
in interface EngineeringCRS
getDatum
in interface SingleCRS
getDatum
in class AbstractSingleCRS
public int hashCode()
hashCode
in class AbstractSingleCRS
protected String formatWKT(Formatter formatter)
formatWKT
in class AbstractCRS
formatter
- The formatter to use."LOCAL_CS"
.Formattable.toWKT()
,
Formattable.toString()
public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)
CARTESIAN_xD
and GENERIC_xD
would be considered equals when
metadata are ignored.equals
in class AbstractSingleCRS
object
- The object to compare to this
.compareMetadata
- true
for performing a strict comparaison, or false
for
comparing only properties relevant to transformations.true
if both objects are equal.public boolean isWildcard()
Copyright © 1996–2019 Geotools. All rights reserved.