org.geotools.metadata.iso.extent
Class BoundingPolygonImpl

Object
  extended by AbstractMetadata
      extended by ModifiableMetadata
          extended by MetadataEntity
              extended by GeographicExtentImpl
                  extended by BoundingPolygonImpl
All Implemented Interfaces:
Serializable, Cloneable, BoundingPolygon, GeographicExtent

public class BoundingPolygonImpl
extends GeographicExtentImpl
implements BoundingPolygon

Boundary enclosing the dataset, expressed as the closed set of (x,y) coordinates of the polygon. The last point replicates first point.

Since:
2.1
Author:
Martin Desruisseaux (IRD), Touraïvane
See Also:
Serialized Form
Module:
modules/library/metadata (gt-metadata.jar)

Field Summary
 
Fields inherited from class AbstractMetadata
LOGGER
 
Constructor Summary
BoundingPolygonImpl()
          Constructs an initially empty bounding polygon.
BoundingPolygonImpl(BoundingPolygon source)
          Constructs a metadata entity initialized with the values from the specified metadata.
BoundingPolygonImpl(Collection<Geometry> polygons)
          Creates a bounding polygon initialized to the specified value.
 
Method Summary
 Collection<Geometry> getPolygons()
          Returns the sets of points defining the bounding polygon.
 void setPolygons(Collection<? extends Geometry> newValues)
          Set the sets of points defining the bounding polygon.
 
Methods inherited from class GeographicExtentImpl
getInclusion, setInclusion
 
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
 
Methods inherited from interface GeographicExtent
getInclusion
 

Constructor Detail

BoundingPolygonImpl

public BoundingPolygonImpl()
Constructs an initially empty bounding polygon.


BoundingPolygonImpl

public BoundingPolygonImpl(BoundingPolygon source)
Constructs a metadata entity initialized with the values from the specified metadata.

Since:
2.4

BoundingPolygonImpl

public BoundingPolygonImpl(Collection<Geometry> polygons)
Creates a bounding polygon initialized to the specified value.

Method Detail

getPolygons

public Collection<Geometry> getPolygons()
Returns the sets of points defining the bounding polygon.

Specified by:
getPolygons in interface BoundingPolygon

setPolygons

public void setPolygons(Collection<? extends Geometry> newValues)
Set the sets of points defining the bounding polygon.



Copyright © 1996-2010 Geotools. All Rights Reserved.