org.geotools.metadata.iso.extent
Class ExtentImpl

java.lang.Object
  extended by org.geotools.metadata.AbstractMetadata
      extended by org.geotools.metadata.ModifiableMetadata
          extended by org.geotools.metadata.iso.MetadataEntity
              extended by org.geotools.metadata.iso.extent.ExtentImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.opengis.metadata.extent.Extent

public class ExtentImpl
extends MetadataEntity
implements org.opengis.metadata.extent.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
Version:
$Id: ExtentImpl.java 31557 2008-09-19 20:02:35Z desruisseaux $
Author:
Martin Desruisseaux (IRD), Touraïvane
See Also:
Serialized Form

Field Summary
static org.opengis.metadata.extent.Extent WORLD
          A geographic extent ranging from 180°W to 180°E and 90°S to 90°N.
 
Fields inherited from class org.geotools.metadata.AbstractMetadata
LOGGER
 
Constructor Summary
ExtentImpl()
          Constructs an initially empty extent.
ExtentImpl(org.opengis.metadata.extent.Extent source)
          Constructs a metadata entity initialized with the values from the specified metadata.
 
Method Summary
 org.opengis.util.InternationalString getDescription()
          Returns the spatial and temporal extent for the referring object.
static org.opengis.metadata.extent.GeographicBoundingBox getGeographicBoundingBox(org.opengis.metadata.extent.Extent extent)
          Convenience method returning a single geographic bounding box from the specified extent.
 java.util.Collection<org.opengis.metadata.extent.GeographicExtent> getGeographicElements()
          Provides geographic component of the extent of the referring object
 java.util.Collection<org.opengis.metadata.extent.TemporalExtent> getTemporalElements()
          Provides temporal component of the extent of the referring object
 java.util.Collection<org.opengis.metadata.extent.VerticalExtent> getVerticalElements()
          Provides vertical component of the extent of the referring object
 void setDescription(org.opengis.util.InternationalString newValue)
          Set the spatial and temporal extent for the referring object.
 void setGeographicElements(java.util.Collection<? extends org.opengis.metadata.extent.GeographicExtent> newValues)
          Set geographic component of the extent of the referring object
 void setTemporalElements(java.util.Collection<? extends org.opengis.metadata.extent.TemporalExtent> newValues)
          Set temporal component of the extent of the referring object
 void setVerticalElements(java.util.Collection<? extends org.opengis.metadata.extent.VerticalExtent> newValues)
          Set vertical component of the extent of the referring object
 
Methods inherited from class org.geotools.metadata.iso.MetadataEntity
ensureNonNull, getStandard
 
Methods inherited from class org.geotools.metadata.ModifiableMetadata
checkWritePermission, clone, copyCollection, copyList, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, unmodifiable
 
Methods inherited from class org.geotools.metadata.AbstractMetadata
asMap, asTree, equals, getInterface, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

WORLD

public static final org.opengis.metadata.extent.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(org.opengis.metadata.extent.Extent source)
Constructs a metadata entity initialized with the values from the specified metadata.

Since:
2.4
Method Detail

getDescription

public org.opengis.util.InternationalString getDescription()
Returns the spatial and temporal extent for the referring object.

Specified by:
getDescription in interface org.opengis.metadata.extent.Extent

setDescription

public void setDescription(org.opengis.util.InternationalString newValue)
Set the spatial and temporal extent for the referring object.


getGeographicElements

public java.util.Collection<org.opengis.metadata.extent.GeographicExtent> getGeographicElements()
Provides geographic component of the extent of the referring object

Specified by:
getGeographicElements in interface org.opengis.metadata.extent.Extent

setGeographicElements

public void setGeographicElements(java.util.Collection<? extends org.opengis.metadata.extent.GeographicExtent> newValues)
Set geographic component of the extent of the referring object


getTemporalElements

public java.util.Collection<org.opengis.metadata.extent.TemporalExtent> getTemporalElements()
Provides temporal component of the extent of the referring object

Specified by:
getTemporalElements in interface org.opengis.metadata.extent.Extent

setTemporalElements

public void setTemporalElements(java.util.Collection<? extends org.opengis.metadata.extent.TemporalExtent> newValues)
Set temporal component of the extent of the referring object


getVerticalElements

public java.util.Collection<org.opengis.metadata.extent.VerticalExtent> getVerticalElements()
Provides vertical component of the extent of the referring object

Specified by:
getVerticalElements in interface org.opengis.metadata.extent.Extent

setVerticalElements

public void setVerticalElements(java.util.Collection<? extends org.opengis.metadata.extent.VerticalExtent> newValues)
Set vertical component of the extent of the referring object


getGeographicBoundingBox

public static org.opengis.metadata.extent.GeographicBoundingBox getGeographicBoundingBox(org.opengis.metadata.extent.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-2010 Geotools. All Rights Reserved.