public class DefaultSpatialTemporalExtent extends DefaultTemporalExtent implements SpatialTemporalExtent
Limitations:
XML
instead.Defined in the sis-metadata
module
identifiers, LOGGER
Constructor and Description |
---|
DefaultSpatialTemporalExtent()
Constructs an initially empty spatial-temporal extent.
|
DefaultSpatialTemporalExtent(GeographicExtent spatialExtent,
VerticalExtent verticalExtent,
TemporalExtent extent)
Constructs a new spatial-temporal extent initialized to the specified values.
|
DefaultSpatialTemporalExtent(SpatialTemporalExtent object)
Constructs a new instance initialized with the values from the specified metadata object.
|
Modifier and Type | Method and Description |
---|---|
static DefaultSpatialTemporalExtent |
castOrCopy(SpatialTemporalExtent object)
Returns a SIS metadata implementation with the values of the given arbitrary implementation.
|
Collection<GeographicExtent> |
getSpatialExtent()
Returns the spatial extent component of composite spatial and temporal extent.
|
VerticalExtent |
getVerticalExtent()
Returns the vertical extent component.
|
void |
setBounds(Envelope envelope)
Sets this spatio-temporal extent to values inferred from the specified envelope.
|
void |
setSpatialExtent(Collection<? extends GeographicExtent> newValues)
Sets the spatial extent component of composite spatial and temporal extent.
|
void |
setVerticalExtent(VerticalExtent newValue)
Sets the vertical extent component.
|
castOrCopy, getEndTime, getExtent, getStartTime, setBounds, setExtent
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
getExtent
public DefaultSpatialTemporalExtent()
public DefaultSpatialTemporalExtent(GeographicExtent spatialExtent, VerticalExtent verticalExtent, TemporalExtent extent)
spatialExtent
- The spatial extent component of composite spatial and temporal extent.verticalExtent
- The vertical extent component, or null
if none.extent
- The date and time for the content of the dataset, or null
if unspecified.public DefaultSpatialTemporalExtent(SpatialTemporalExtent object)
object
- The metadata to copy values from, or null
if none.castOrCopy(SpatialTemporalExtent)
public static DefaultSpatialTemporalExtent castOrCopy(SpatialTemporalExtent object)
null
, then this method returns null
.DefaultSpatialTemporalExtent
, then it is returned unchanged.DefaultSpatialTemporalExtent
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 Collection<GeographicExtent> getSpatialExtent()
getSpatialExtent
in interface SpatialTemporalExtent
null
).public void setSpatialExtent(Collection<? extends GeographicExtent> newValues)
newValues
- The new spatial extent.public VerticalExtent getVerticalExtent()
null
if none.public void setVerticalExtent(VerticalExtent newValue)
newValue
- The new vertical extent component.public void setBounds(Envelope envelope) throws TransformException
The spatial component is handled as below:
GeographicBoundingBox
, then that bounding box will be updated or replaced
by a bounding box containing the spatial component of the given envelope.DefaultGeographicBoundingBox
with the spatial component
of the given envelope is added to the list of spatial extents.Other dimensions are handled in a more straightforward way:
null
if none.null
if none.sis-referencing
module is
available on the classpath.setBounds
in class DefaultTemporalExtent
envelope
- The envelope to use for setting this spatio-temporal extent.UnsupportedOperationException
- if the referencing module is not on the classpath.TransformException
- if the envelope can not be transformed to a temporal extent.DefaultExtent.addElements(Envelope)
,
DefaultGeographicBoundingBox.setBounds(Envelope)
,
DefaultVerticalExtent.setBounds(Envelope)
Copyright © 2010–2015 The Apache Software Foundation. All rights reserved.