public class DefaultAffineCS extends AbstractCS implements AffineCS
Used with CRS | Permitted axis names |
---|---|
Engineering | unspecified |
Image | unspecified |
CoordinateSystemAxis
instances given to the constructor are also immutable. Unless otherwise
noted in the javadoc, this condition holds if all components were created using only SIS factories and static
constants.Defined in the sis-referencing
module
DEPRECATED_KEY, LOCALE_KEY
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Modifier | Constructor and Description |
---|---|
protected |
DefaultAffineCS(AffineCS cs)
Creates a new coordinate system with the same values than the specified one.
|
|
DefaultAffineCS(Map<String,?> properties,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1)
Constructs a two-dimensional coordinate system from a set of properties.
|
|
DefaultAffineCS(Map<String,?> properties,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1,
CoordinateSystemAxis axis2)
Constructs a three-dimensional coordinate system from a set of properties.
|
Modifier and Type | Method and Description |
---|---|
static DefaultAffineCS |
castOrCopy(AffineCS object)
Returns a SIS coordinate system implementation with the same values than the given arbitrary implementation.
|
DefaultAffineCS |
forConvention(AxesConvention convention)
Returns a coordinate system equivalent to this one but with axes rearranged according the given convention.
|
Class<? extends AffineCS> |
getInterface()
Returns the GeoAPI interface implemented by this class.
|
castOrCopy, computeHashCode, equals, formatTo, getAxis, getDimension
castOrCopy, equals, getAlias, getDescription, getIdentifiers, getName, getRemarks, hashCode, isDeprecated, isHeuristicMatchForName
print, toString, toString, toWKT
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAxis, getDimension
getAlias, getIdentifiers, getName, getRemarks, toWKT
public DefaultAffineCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1)
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() |
properties
- the properties to be given to the identified object.axis0
- the first axis.axis1
- the second axis.GeodeticObjectFactory.createAffineCS(Map, CoordinateSystemAxis, CoordinateSystemAxis)
public DefaultAffineCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2)
properties
- the properties to be given to the identified object.axis0
- the first axis.axis1
- the second axis.axis2
- the third axis.GeodeticObjectFactory.createAffineCS(Map, CoordinateSystemAxis, CoordinateSystemAxis, CoordinateSystemAxis)
protected DefaultAffineCS(AffineCS cs)
This constructor performs a shallow copy, i.e. the properties are not cloned.
cs
- the coordinate system to copy.castOrCopy(AffineCS)
public static DefaultAffineCS castOrCopy(AffineCS 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.
This method checks for the CartesianCS
sub-interface. If that interface is found,
then this method delegates to the corresponding castOrCopy
static method.
object
- the object to get as a SIS implementation, or null
if none.null
if the argument was null.public Class<? extends AffineCS> getInterface()
AffineCS.class
.
Subclasses implementing a more specific GeoAPI interface shall override this method.getInterface
in class AbstractCS
public DefaultAffineCS forConvention(AxesConvention convention)
this
.forConvention
in class AbstractCS
convention
- the axes convention for which a coordinate system is desired.this
).AbstractCRS.forConvention(AxesConvention)
Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.