org.geotools.metadata.iso.extent
Class ExtentImpl

Object
  extended by AbstractMetadata
      extended by ModifiableMetadata
          extended by MetadataEntity
              extended by 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
Module:
modules/library/metadata (gt-metadata.jar)

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 AbstractMetadata
LOGGER
 
Constructor Summary
ExtentImpl()
          Constructs an initially empty extent.
ExtentImpl(Extent source)
          Constructs a metadata entity initialized with the values from the specified metadata.
 
Method Summary
 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)
          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 object
 void setTemporalElements(Collection<? extends TemporalExtent> newValues)
          Set temporal component of the extent of the referring object
 void 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
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 interface Extent

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 interface Extent

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 interface Extent

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 interface Extent

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 returns null. If more than one box is found, then boxes are added together.

Since:
2.2


Copyright © 1996-2009 Geotools. All Rights Reserved.