org.geotools.metadata.iso.extent
Class BoundingPolygonImpl

java.lang.Object
  extended byorg.geotools.metadata.iso.MetadataEntity
      extended byorg.geotools.metadata.iso.extent.GeographicExtentImpl
          extended byorg.geotools.metadata.iso.extent.BoundingPolygonImpl
All Implemented Interfaces:
org.opengis.metadata.extent.BoundingPolygon, java.lang.Cloneable, org.opengis.metadata.extent.GeographicExtent, java.io.Serializable

public class BoundingPolygonImpl
extends GeographicExtentImpl
implements org.opengis.metadata.extent.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
Version:
$Id: BoundingPolygonImpl.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux, Toura?vane
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.metadata.iso.MetadataEntity
LOGGER
 
Constructor Summary
BoundingPolygonImpl()
          Constructs an initially empty bounding polygon.
BoundingPolygonImpl(java.util.Collection polygons)
          Creates a bounding polygon initialized to the specified value.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compare this bounding polygon with the specified object for equality.
protected  void freeze()
          Declare this metadata and all its attributes as unmodifiable.
 java.util.Collection getPolygons()
          Returns the sets of points defining the bounding polygon.
 int hashCode()
          Returns a hash code value for this bounding polygon.
 void setPolygons(java.util.Collection newValues)
          Set the sets of points defining the bounding polygon.
 java.lang.String toString()
          Returns a string representation of this bounding polygon.
 
Methods inherited from class org.geotools.metadata.iso.extent.GeographicExtentImpl
getInclusion, setInclusion
 
Methods inherited from class org.geotools.metadata.iso.MetadataEntity
appendLineSeparator, checkWritePermission, copyCollection, isModifiable, nonNullCollection, unmodifiable, unmodifiable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.metadata.extent.GeographicExtent
getInclusion
 

Constructor Detail

BoundingPolygonImpl

public BoundingPolygonImpl()
Constructs an initially empty bounding polygon.


BoundingPolygonImpl

public BoundingPolygonImpl(java.util.Collection polygons)
Creates a bounding polygon initialized to the specified value.

Method Detail

getPolygons

public java.util.Collection getPolygons()
Returns the sets of points defining the bounding polygon.

Specified by:
getPolygons in interface org.opengis.metadata.extent.BoundingPolygon

setPolygons

public void setPolygons(java.util.Collection newValues)
Set the sets of points defining the bounding polygon.


freeze

protected void freeze()
Declare this metadata and all its attributes as unmodifiable.

Overrides:
freeze in class GeographicExtentImpl

equals

public boolean equals(java.lang.Object object)
Compare this bounding polygon with the specified object for equality.

Overrides:
equals in class GeographicExtentImpl

hashCode

public int hashCode()
Returns a hash code value for this bounding polygon.

Overrides:
hashCode in class GeographicExtentImpl

toString

public java.lang.String toString()
Returns a string representation of this bounding polygon.

Overrides:
toString in class GeographicExtentImpl
To Do:
Provides a more elaborated implementation.


Copyright © GeoTools. All Rights Reserved.