|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFormattable
AbstractIdentifiedObject
AbstractReferenceSystem
AbstractCRS
AbstractSingleCRS
DefaultEngineeringCRS
public class DefaultEngineeringCRS
A contextually local coordinate reference system. It can be divided into two broad categories:
Used with CS type(s) |
---|
Cartesian ,
Affine ,
Ellipsoidal ,
Spherical ,
Cylindrical ,
Polar ,
Vertical ,
Linear
|
Field Summary | |
---|---|
static DefaultEngineeringCRS |
CARTESIAN_2D
A two-dimensional cartesian coordinate reference system with x, y axis in metres. |
static DefaultEngineeringCRS |
CARTESIAN_3D
A three-dimensional cartesian coordinate reference system with x, y, z axis in metres. |
static DefaultEngineeringCRS |
GENERIC_2D
A two-dimensional wildcard coordinate system with x, y axis in metres. |
static DefaultEngineeringCRS |
GENERIC_3D
A three-dimensional wildcard coordinate system with x, y, z axis in metres. |
protected boolean |
wildcard
Marks the CRS as a wildcard one. |
Fields inherited from class AbstractSingleCRS |
---|
datum |
Fields inherited from class AbstractCRS |
---|
coordinateSystem |
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 ReferenceSystem |
---|
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY |
Fields inherited from interface IdentifiedObject |
---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
Methods inherited from class AbstractSingleCRS |
---|
getAxis, getDimension |
Methods inherited from class AbstractCRS |
---|
distance, getCoordinateSystem |
Methods inherited from class AbstractReferenceSystem |
---|
getDomainOfValidity, getScope, getValidArea |
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, nameMatches, nameMatches, nameMatches |
Methods inherited from class Formattable |
---|
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface SingleCRS |
---|
getCoordinateSystem |
Methods inherited from interface ReferenceSystem |
---|
getDomainOfValidity, getScope |
Methods inherited from interface IdentifiedObject |
---|
getAlias, getIdentifiers, getName, getRemarks, toWKT |
Field Detail |
---|
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.
Constructor Detail |
---|
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 transformMethod Detail |
---|
public 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |