public class DefaultExtent extends ISOMetadata implements Extent
In addition to the standard properties, SIS provides the following methods:
addElements(Envelope)
for adding extents inferred from the given envelope.Extents.getGeographicBoundingBox(Extent)
for extracting a global geographic bounding box.XML
instead.Extents.getGeographicBoundingBox(Extent)
,
AbstractReferenceSystem.getDomainOfValidity()
,
AbstractDatum.getDomainOfValidity()
,
Serialized FormDefined in the sis-metadata
module
identifiers, LOGGER
Constructor and Description |
---|
DefaultExtent()
Constructs an initially empty extent.
|
DefaultExtent(CharSequence description,
GeographicExtent geographicElements,
VerticalExtent verticalElements,
TemporalExtent temporalElements)
Constructs an extent initialized to the given description or components.
|
DefaultExtent(Extent object)
Constructs a new instance initialized with the values from the specified metadata object.
|
Modifier and Type | Method and Description |
---|---|
void |
addElements(Envelope envelope)
Adds geographic, vertical or temporal extents inferred from the given envelope.
|
static DefaultExtent |
castOrCopy(Extent object)
Returns a SIS metadata implementation with the values of the given arbitrary implementation.
|
InternationalString |
getDescription()
Returns the spatial and temporal extent for the referring object.
|
Collection<GeographicExtent> |
getGeographicElements()
Provides geographic component of the extent of the referring object
|
Collection<TemporalExtent> |
getTemporalElements()
Provides temporal component of the extent of the referring object.
|
Collection<VerticalExtent> |
getVerticalElements()
Provides vertical component of the extent of the referring object.
|
void |
setDescription(InternationalString newValue)
Sets the spatial and temporal extent for the referring object.
|
void |
setGeographicElements(Collection<? extends GeographicExtent> newValues)
Sets geographic component of the extent of the referring object.
|
void |
setTemporalElements(Collection<? extends TemporalExtent> newValues)
Sets temporal component of the extent of the referring object.
|
void |
setVerticalElements(Collection<? extends VerticalExtent> newValues)
Sets vertical component of the extent of the referring object.
|
getIdentifierMap, getIdentifiers, getStandard
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSet
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
public DefaultExtent()
public DefaultExtent(CharSequence description, GeographicExtent geographicElements, VerticalExtent verticalElements, TemporalExtent temporalElements)
null
.
While a valid Extent
requires at least one component to be non-null,
this constructor does not perform such verification.description
- A description, or null
if none.geographicElements
- A geographic component, or null
if none.verticalElements
- A vertical component, or null
if none.temporalElements
- A temporal component, or null
if none.public DefaultExtent(Extent object)
object
- The metadata to copy values from, or null
if none.castOrCopy(Extent)
public static DefaultExtent castOrCopy(Extent object)
null
, then this method returns null
.DefaultExtent
, then it is returned unchanged.DefaultExtent
instance is created using the
copy constructor
and returned. Note that this is a shallow copy operation, since the other
metadata contained in the given object are not recursively copied.object
- The object to get as a SIS implementation, or null
if none.null
if the argument was null.public InternationalString getDescription()
getDescription
in interface Extent
null
in none.public void setDescription(InternationalString newValue)
newValue
- The new description.public Collection<GeographicExtent> getGeographicElements()
getGeographicElements
in interface Extent
public void setGeographicElements(Collection<? extends GeographicExtent> newValues)
newValues
- The new geographic elements.public Collection<VerticalExtent> getVerticalElements()
getVerticalElements
in interface Extent
public void setVerticalElements(Collection<? extends VerticalExtent> newValues)
newValues
- The new vertical elements.public Collection<TemporalExtent> getTemporalElements()
getTemporalElements
in interface Extent
public void setTemporalElements(Collection<? extends TemporalExtent> newValues)
newValues
- The new temporal elements.public void addElements(Envelope envelope) throws TransformException
GeographicBoundingBox
, VerticalExtent
or TemporalExtent
elements as needed.
Note: this method is available only if the referencing module is on the classpath.
envelope
- The envelope to use for inferring the additional extents.UnsupportedOperationException
- if the referencing module is not on the classpath.TransformException
- if a coordinate transformation was required and failed.DefaultGeographicBoundingBox.setBounds(Envelope)
,
DefaultVerticalExtent.setBounds(Envelope)
,
DefaultTemporalExtent.setBounds(Envelope)
Copyright © 2010–2015 The Apache Software Foundation. All rights reserved.