Package org.geotools.metadata.iso.extent
Class ExtentImpl
- Object
-
- AbstractMetadata
-
- ModifiableMetadata
-
- MetadataEntity
-
- ExtentImpl
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Extent
public class ExtentImpl extends MetadataEntity implements 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Extent
WORLD
A geographic extent ranging from 180°W to 180°E and 90°S to 90°N.-
Fields inherited from class AbstractMetadata
LOGGER
-
-
Constructor Summary
Constructors Constructor Description ExtentImpl()
Constructs an initially empty extent.ExtentImpl(Extent source)
Constructs a metadata entity initialized with the values from the specified metadata.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 objectCollection<TemporalExtent>
getTemporalElements()
Provides temporal component of the extent of the referring objectCollection<VerticalExtent>
getVerticalElements()
Provides 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 object-
Methods 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 Detail
-
WORLD
public static final Extent WORLD
A geographic extent ranging from 180°W to 180°E and 90°S to 90°N.- Since:
- 2.2
-
-
Constructor Detail
-
ExtentImpl
public ExtentImpl()
Constructs an initially empty extent.
-
ExtentImpl
public ExtentImpl(Extent source)
Constructs a metadata entity initialized with the values from the specified metadata.- Since:
- 2.4
-
-
Method Detail
-
getDescription
public InternationalString 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
public void setDescription(InternationalString newValue)
Set the spatial and temporal extent for the referring object.
-
getGeographicElements
public Collection<GeographicExtent> 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
public void setGeographicElements(Collection<? extends GeographicExtent> newValues)
Set geographic component of the extent of the referring object
-
getTemporalElements
public Collection<TemporalExtent> 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
public void setTemporalElements(Collection<? extends TemporalExtent> newValues)
Set temporal component of the extent of the referring object
-
getVerticalElements
public Collection<VerticalExtent> 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
public void setVerticalElements(Collection<? extends VerticalExtent> newValues)
Set vertical component of the extent of the referring object
-
getGeographicBoundingBox
public static GeographicBoundingBox getGeographicBoundingBox(Extent extent)
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
-
-