twaver.gis
Interface GeographyFeature


public interface GeographyFeature

This interface is used to manage feature attributes.

Each feature should have default geometry and zero or more non-geometry attributes. The geometry attribute not only describes how to draw the feature, but also can be used in spatial calculation. Non-geometry attribute describes some accessional attribute, such as name,area,length,width, and so on. At present, all attributes stored in a feature are read-only .


Method Summary
 java.lang.Object getAttribute(java.lang.String attributeName)
          Gets the specified attribute value
 int getAttributesConunt()
          Gets the attributes count of the feature
 java.util.Iterator getAttributesNames()
          Gets the names of all the feature's attributes
 java.awt.geom.Rectangle2D getBounds()
          Gets the bounds of the feature's default geometry.
 java.lang.String getGeomType()
           
 java.lang.String getID()
          Gets feature id.
 java.util.List getPoints()
          Gets the points making up of the geometry of the feature.
 void setGeomType(java.lang.String type)
           
 

Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String attributeName)
Gets the specified attribute value

Parameters:
attributeName - the specified attribute name
Returns:
the value of the attribute.

getAttributesConunt

public int getAttributesConunt()
Gets the attributes count of the feature

Returns:
the attributes count of the feature

getAttributesNames

public java.util.Iterator getAttributesNames()
Gets the names of all the feature's attributes

Returns:
an Iterator object, filled with the names of all the feature's attributes

getBounds

public java.awt.geom.Rectangle2D getBounds()
Gets the bounds of the feature's default geometry.

Returns:
the bounds of the feature's default geometry

getGeomType

public java.lang.String getGeomType()

getID

public java.lang.String getID()
Gets feature id.

Returns:
the feature id.

getPoints

public java.util.List getPoints()
Gets the points making up of the geometry of the feature.

Returns:
a Vector object, filled with the points making up of the geometry of the feature

setGeomType

public void setGeomType(java.lang.String type)