Package org.geotools.metadata.iso.extent
Class ExtentImpl
Object
AbstractMetadata
ModifiableMetadata
MetadataEntity
ExtentImpl
- All Implemented Interfaces:
Serializable
,Cloneable
,Extent
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.
- Since:
- 2.1
- Author:
- Martin Desruisseaux (IRD), Touraïvane
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Extent
A geographic extent ranging from 180°W to 180°E and 90°S to 90°N.Fields inherited from class AbstractMetadata
LOGGER
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an initially empty extent.ExtentImpl
(Extent source) Constructs a metadata entity initialized with the values from the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.Provides geographic component of the extent of the referring objectProvides temporal component of the extent of the referring objectProvides vertical component of the extent of the referring objectvoid
setDescription
(InternationalString newValue) Set the spatial and temporal extent for the referring object.void
setGeographicElements
(Collection<? extends GeographicExtent> newValues) Set geographic component of the extent of the referring objectvoid
setTemporalElements
(Collection<? extends TemporalExtent> newValues) Set temporal component of the extent of the referring objectvoid
setVerticalElements
(Collection<? extends VerticalExtent> newValues) Set vertical component of the extent of the referring objectMethods inherited from class MetadataEntity
ensureNonNull, getStandard
Methods inherited from class ModifiableMetadata
checkWritePermission, clone, copyCollection, copyList, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, unmodifiable
Methods inherited from class AbstractMetadata
asMap, asTree, equals, getInterface, hashCode, toString
-
Field Details
-
WORLD
A geographic extent ranging from 180°W to 180°E and 90°S to 90°N.- Since:
- 2.2
-
-
Constructor Details
-
ExtentImpl
public ExtentImpl()Constructs an initially empty extent. -
ExtentImpl
Constructs a metadata entity initialized with the values from the specified metadata.- Since:
- 2.4
-
-
Method Details
-
getDescription
Returns the spatial and temporal extent for the referring object.- Specified by:
getDescription
in interfaceExtent
- Returns:
- The spatial and temporal extent, or
null
in none.
-
setDescription
Set the spatial and temporal extent for the referring object. -
getGeographicElements
Provides geographic component of the extent of the referring object- Specified by:
getGeographicElements
in interfaceExtent
- Returns:
- The geographic extent, or an empty set if none.
-
setGeographicElements
Set geographic component of the extent of the referring object -
getTemporalElements
Provides temporal component of the extent of the referring object- Specified by:
getTemporalElements
in interfaceExtent
- Returns:
- The temporal extent, or an empty set if none.
-
setTemporalElements
Set temporal component of the extent of the referring object -
getVerticalElements
Provides vertical component of the extent of the referring object- Specified by:
getVerticalElements
in interfaceExtent
- Returns:
- The vertical extent, or an empty set if none.
-
setVerticalElements
Set vertical component of the extent of the referring object -
getGeographicBoundingBox
Convenience method returning a single geographic bounding box from the specified extent. If no bounding box was found, then this method returnsnull
. If more than one box is found, then boxes are added together.- Since:
- 2.2
-