org.geotools.feature
Class GeometryAttributeImpl

java.lang.Object
  extended by org.geotools.feature.PropertyImpl
      extended by org.geotools.feature.AttributeImpl
          extended by org.geotools.feature.GeometryAttributeImpl
All Implemented Interfaces:
org.opengis.feature.Attribute, org.opengis.feature.GeometryAttribute, org.opengis.feature.Property

public class GeometryAttributeImpl
extends AttributeImpl
implements org.opengis.feature.GeometryAttribute

TODO: rename to GeometricAttribute Provides ...TODO summary sentence

TODO Description

Example Use:


         GeometryAttributeType x = new GeometryAttributeType( ... );
         TODO code example
 

Since:
0.3 TODO: test wkt geometry parse.
Author:
Leprosy

Field Summary
protected  org.opengis.geometry.BoundingBox bounds
          bounds, derived
 
Fields inherited from class org.geotools.feature.AttributeImpl
id
 
Fields inherited from class org.geotools.feature.PropertyImpl
descriptor, userData, value
 
Constructor Summary
GeometryAttributeImpl(java.lang.Object content, org.opengis.feature.type.GeometryDescriptor descriptor, org.opengis.filter.identity.Identifier id)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Override of equals.
 org.opengis.geometry.BoundingBox getBounds()
          Returns the non null envelope of this attribute.
 org.opengis.feature.type.GeometryDescriptor getDescriptor()
           
 org.opengis.feature.type.GeometryType getType()
           
 com.vividsolutions.jts.geom.Geometry getValue()
           
 int hashCode()
          Override of hashCode.
 void setBounds(org.opengis.geometry.BoundingBox bbox)
          Set the bounds for the contained geometry.
 void setValue(com.vividsolutions.jts.geom.Geometry geometry)
           
 void setValue(java.lang.Object newValue)
          Override of setValue to convert the newValue to specified type if need be.
 java.lang.String toString()
           
 
Methods inherited from class org.geotools.feature.AttributeImpl
getIdentifier, parse, validate
 
Methods inherited from class org.geotools.feature.PropertyImpl
getName, getUserData, isNillable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.feature.Attribute
getIdentifier, validate
 
Methods inherited from interface org.opengis.feature.Property
getName, getUserData, isNillable
 

Field Detail

bounds

protected org.opengis.geometry.BoundingBox bounds
bounds, derived

Constructor Detail

GeometryAttributeImpl

public GeometryAttributeImpl(java.lang.Object content,
                             org.opengis.feature.type.GeometryDescriptor descriptor,
                             org.opengis.filter.identity.Identifier id)
Method Detail

getType

public org.opengis.feature.type.GeometryType getType()
Specified by:
getType in interface org.opengis.feature.Attribute
Specified by:
getType in interface org.opengis.feature.GeometryAttribute
Specified by:
getType in interface org.opengis.feature.Property
Overrides:
getType in class AttributeImpl

getDescriptor

public org.opengis.feature.type.GeometryDescriptor getDescriptor()
Specified by:
getDescriptor in interface org.opengis.feature.Attribute
Specified by:
getDescriptor in interface org.opengis.feature.GeometryAttribute
Specified by:
getDescriptor in interface org.opengis.feature.Property
Overrides:
getDescriptor in class AttributeImpl

getValue

public com.vividsolutions.jts.geom.Geometry getValue()
Specified by:
getValue in interface org.opengis.feature.Property
Overrides:
getValue in class PropertyImpl

setValue

public void setValue(java.lang.Object newValue)
              throws java.lang.IllegalArgumentException,
                     java.lang.IllegalStateException
Description copied from class: AttributeImpl
Override of setValue to convert the newValue to specified type if need be.

Specified by:
setValue in interface org.opengis.feature.Property
Overrides:
setValue in class AttributeImpl
Throws:
java.lang.IllegalArgumentException
java.lang.IllegalStateException

setValue

public void setValue(com.vividsolutions.jts.geom.Geometry geometry)

setBounds

public void setBounds(org.opengis.geometry.BoundingBox bbox)
Set the bounds for the contained geometry.

Specified by:
setBounds in interface org.opengis.feature.GeometryAttribute

getBounds

public org.opengis.geometry.BoundingBox getBounds()
Returns the non null envelope of this attribute. If the attribute's geometry is null the returned Envelope isNull() is true.

Specified by:
getBounds in interface org.opengis.feature.GeometryAttribute
Returns:

equals

public boolean equals(java.lang.Object o)
Description copied from class: AttributeImpl
Override of equals.

Overrides:
equals in class AttributeImpl
Returns:
whether other is equal to this attribute Type.

hashCode

public int hashCode()
Description copied from class: AttributeImpl
Override of hashCode.

Overrides:
hashCode in class AttributeImpl
Returns:
hashCode for this object.

toString

public java.lang.String toString()
Overrides:
toString in class AttributeImpl


Copyright © 1996-2010 Geotools. All Rights Reserved.