public class DefaultImageCRS extends AbstractCRS implements ImageCRS
Used with coordinate system types: Cartesian or Affine.
Defined in the sis-referencing
module
LOCALE_KEY
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Modifier | Constructor and Description |
---|---|
protected |
DefaultImageCRS(ImageCRS crs)
Constructs a new coordinate reference system with the same values than the specified one.
|
|
DefaultImageCRS(Map<String,?> properties,
ImageDatum datum,
AffineCS cs)
Creates a coordinate reference system from the given properties, datum and coordinate system.
|
Modifier and Type | Method and Description |
---|---|
static DefaultImageCRS |
castOrCopy(ImageCRS object)
Returns a SIS coordinate reference system implementation with the same values than the given
arbitrary implementation.
|
DefaultImageCRS |
forConvention(AxesConvention convention)
Returns a coordinate reference system equivalent to this one but with axes rearranged according the given
convention.
|
protected String |
formatTo(Formatter formatter)
Formats this CRS as a Well Known Text
ImageCRS[…] element. |
AffineCS |
getCoordinateSystem()
Returns the coordinate system.
|
ImageDatum |
getDatum()
Returns the datum.
|
Class<? extends ImageCRS> |
getInterface()
Returns the GeoAPI interface implemented by this class.
|
castOrCopy, computeHashCode, equals
getDomainOfValidity, getScope
castOrCopy, equals, getAlias, getIdentifiers, getName, getRemarks, hashCode, isDeprecated, isHeuristicMatchForName
print, toString, toString, toWKT
getDomainOfValidity, getScope
getAlias, getIdentifiers, getName, getRemarks, toWKT
public DefaultImageCRS(Map<String,?> properties, ImageDatum datum, AffineCS cs)
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() |
"domainOfValidity" | Extent |
AbstractReferenceSystem.getDomainOfValidity() |
"scope" | InternationalString or String |
AbstractReferenceSystem.getScope() |
properties
- The properties to be given to the coordinate reference system.datum
- The datum.cs
- The coordinate system.protected DefaultImageCRS(ImageCRS crs)
This constructor performs a shallow copy, i.e. the properties are not cloned.
crs
- The coordinate reference system to copy.castOrCopy(ImageCRS)
public static DefaultImageCRS castOrCopy(ImageCRS 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 ImageCRS> getInterface()
ImageCRS.class
.
ImageCRS
sub-interface. Overriding possibility is left mostly for implementors who wish to extend GeoAPI with
their own set of interfaces.getInterface
in class AbstractCRS
ImageCRS.class
or a user-defined sub-interface.public final ImageDatum getDatum()
public AffineCS getCoordinateSystem()
getCoordinateSystem
in interface CoordinateReferenceSystem
getCoordinateSystem
in interface ImageCRS
getCoordinateSystem
in interface SingleCRS
getCoordinateSystem
in class AbstractCRS
public DefaultImageCRS forConvention(AxesConvention convention)
this
.forConvention
in class AbstractCRS
convention
- The axes convention for which a coordinate reference system is desired.this
).AbstractCS.forConvention(AxesConvention)
protected String formatTo(Formatter formatter)
ImageCRS[…]
element.
ImageCRS
are defined in the WKT 2 specification only.formatTo
in class AbstractCRS
formatter
- The formatter where to format the inner content of this WKT element."ImageCRS"
.FormattableObject.toWKT()
,
FormattableObject.toString()
Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.