public class DefaultCartesianCS extends DefaultAffineCS implements CartesianCS
| Used with CRS | Permitted axis names |
|---|---|
| Geocentric | “Geocentric X”, “Geocentric Y”, “Geocentric Z” |
| Projected | “Easting” or “Westing”, “Northing” or “Southing” |
| 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_KEYALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY| Modifier | Constructor and Description |
|---|---|
protected |
DefaultCartesianCS(CartesianCS cs)
Creates a new coordinate system with the same values than the specified one.
|
|
DefaultCartesianCS(Map<String,?> properties,
CoordinateSystemAxis axis0,
CoordinateSystemAxis axis1)
Constructs a two-dimensional coordinate system from a set of properties.
|
|
DefaultCartesianCS(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 DefaultCartesianCS |
castOrCopy(CartesianCS object)
Returns a SIS coordinate system implementation with the same values than the given arbitrary implementation.
|
DefaultCartesianCS |
forConvention(AxesConvention convention)
Returns a coordinate system equivalent to this one but with axes rearranged according the given convention.
|
Class<? extends CartesianCS> |
getInterface()
Returns the GeoAPI interface implemented by this class.
|
castOrCopycastOrCopy, computeHashCode, equals, formatTo, getAxis, getDimensioncastOrCopy, equals, getAlias, getDescription, getIdentifiers, getName, getRemarks, hashCode, isDeprecated, isHeuristicMatchForNamegetAxis, getDimensiongetAlias, getIdentifiers, getName, getRemarks, toWKTpublic DefaultCartesianCS(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 (e.g. “Easting”).axis1 - The second axis (e.g. “Northing”).public DefaultCartesianCS(Map<String,?> properties, CoordinateSystemAxis axis0, CoordinateSystemAxis axis1, CoordinateSystemAxis axis2)
properties - The properties to be given to the identified object.axis0 - The first axis (e.g. “Geocentric X”).axis1 - The second axis (e.g. “Geocentric Y”).axis2 - The third axis (e.g. “Geocentric Z”).protected DefaultCartesianCS(CartesianCS cs)
This constructor performs a shallow copy, i.e. the properties are not cloned.
cs - The coordinate system to copy.castOrCopy(CartesianCS)public static DefaultCartesianCS castOrCopy(CartesianCS 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 CartesianCS> getInterface()
CartesianCS.class.
CartesianCS
sub-interface. Overriding possibility is left mostly for implementors who wish to extend GeoAPI with their
own set of interfaces.getInterface in class DefaultAffineCSCartesianCS.class or a user-defined sub-interface.public DefaultCartesianCS forConvention(AxesConvention convention)
this.forConvention in class DefaultAffineCSconvention - The axes convention for which a coordinate system is desired.this).AbstractCRS.forConvention(AxesConvention)Copyright © 2010–2015 The Apache Software Foundation. All rights reserved.