|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractMetadata
ModifiableMetadata
MetadataEntity
DefaultExtent
@ThreadSafe public class DefaultExtent
Information about spatial, vertical, and temporal extent. This interface has four optional attributes (geographic elements, temporal elements, and vertical elements) and an element called description. At least one of the four shall be used.
| metadata/geotk-metadata (download) | View source code for this class |
| Field Summary | |
|---|---|
static Extent |
WORLD
A geographic extent ranging from 180°W to 180°E and 90°S to 90°N. |
| Fields inherited from class MetadataEntity |
|---|
identifiers |
| Fields inherited from class AbstractMetadata |
|---|
LOGGER |
| Constructor Summary | |
|---|---|
DefaultExtent()
Constructs an initially empty extent. |
|
DefaultExtent(Envelope envelope)
Constructs an extent from the specified envelope. |
|
DefaultExtent(Extent source)
Constructs a metadata entity initialized with the values from the specified metadata. |
|
| Method Summary | |
|---|---|
void |
addElements(Envelope envelope)
Adds geographic, vertical or temporal extents inferred from the given envelope. |
static DefaultExtent |
castOrCopy(Extent object)
Returns a Geotk metadata implementation with the same values than the given arbitrary implementation. |
InternationalString |
getDescription()
Returns the spatial and temporal extent for the referring object. |
static GeographicBoundingBox |
getGeographicBoundingBox(Extent extent)
Convenience method returning a single geographic bounding box from the specified extent. |
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. |
| Methods inherited from class MetadataEntity |
|---|
getIdentifier, getIdentifierMap, getIdentifiers, getStandard |
| Methods inherited from class ModifiableMetadata |
|---|
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, prune, unmodifiable |
| Methods inherited from class AbstractMetadata |
|---|
asMap, asTree, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, parse, toString |
| Methods inherited from class Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Extent WORLD
| Constructor Detail |
|---|
public DefaultExtent()
public DefaultExtent(Extent source)
source - The metadata to copy, or null if none.
public DefaultExtent(Envelope envelope)
throws TransformException
GeographicBoundingBox, VerticalExtent or TemporalExtent
as needed.
Note: This constructor is available only if the referencing module is on the classpath.
envelope - The envelope to use for initializing this extent.
UnsupportedOperationException - if the referencing module is not on the classpath.
TransformException - If a coordinate transformation was required and failed.addElements(Envelope),
DefaultGeographicBoundingBox.DefaultGeographicBoundingBox(Envelope),
DefaultVerticalExtent.DefaultVerticalExtent(Envelope),
DefaultTemporalExtent.DefaultTemporalExtent(Envelope)| Method Detail |
|---|
public static DefaultExtent castOrCopy(Extent object)
null, then this method returns null.
Otherwise if the given object is already a Geotk implementation, then the given object is
returned unchanged. Otherwise a new Geotk implementation is created and initialized to the
attribute values of the given object, using a shallow copy operation
(i.e. attributes are not cloned).
object - The object to get as a Geotk implementation, or null if none.
null if the argument was null.public InternationalString getDescription()
getDescription in interface Extentpublic void setDescription(InternationalString newValue)
newValue - The new description.public Collection<GeographicExtent> getGeographicElements()
getGeographicElements in interface Extentpublic void setGeographicElements(Collection<? extends GeographicExtent> newValues)
newValues - The new geographic elements.public Collection<TemporalExtent> getTemporalElements()
getTemporalElements in interface Extentpublic void setTemporalElements(Collection<? extends TemporalExtent> newValues)
newValues - The new temporal elements.public Collection<VerticalExtent> getVerticalElements()
getVerticalElements in interface Extentpublic void setVerticalElements(Collection<? extends VerticalExtent> newValues)
newValues - The new vertical elements.
public void addElements(Envelope envelope)
throws TransformException
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.public static GeographicBoundingBox getGeographicBoundingBox(Extent extent)
null. If more than one box
is found, then boxes are added together.
extent - The extent to convert to a geographic bounding box.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||