public class DefaultSpatialTemporalExtent extends DefaultTemporalExtent implements SpatialTemporalExtent
Defined in the sis-metadata
module
identifiers, LOGGER
Constructor and Description |
---|
DefaultSpatialTemporalExtent()
Constructs an initially empty spatial-temporal extent.
|
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.
|
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.
|
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(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 void setBounds(Envelope envelope) throws TransformException
spatial extents
contains a
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.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–2014 The Apache Software Foundation. All rights reserved.