org.deegree.model.feature
Interface Feature

All Known Subinterfaces:
FeatureCollection
All Known Implementing Classes:
Feature_Impl, FeatureCollection_Impl

public interface Feature

Features are, according to the Abstract Specification, digital representations of real world entities. Feature Identity thus refers to mechanisms to identify such representations: not to identify the real world entities that are the subject of a representation. Thus two different representations of a real world entity (say the Mississippi River) will be two different features with distinct identities. Real world identification systems, such as title numbers, while possibly forming a sound basis for an implementation of a feature identity mechanism, are not of themselves such a mechanism.

-----------------------------------------------------------------------

Version:
$Revision: 1.6 $ $Date: 2004/03/02 07:38:14 $
Author:
Andreas Poth, Markus Schneider

Method Summary
 GM_Object getDefaultGeometryProperty()
          Returns the default geometry of the Feature.
 GM_Envelope getEnvelope()
          returns the envelope / boundingbox of the feature
 FeatureType getFeatureType()
          returns the FeatureType of this Feature
 GM_Object[] getGeometryProperties()
          returns all geometry properties of the feature.
 java.lang.String getId()
          returns the id of the Feature. the id has to be a name space that must be unique for each feature. use the adress of the datasource in addition to a number for example .
 java.lang.Object[] getProperties()
          returns the properties of the feature as array of Objects
 java.lang.Object getProperty(int index)
          returns the property of the feature that matches the submitted index
 java.lang.Object getProperty(java.lang.String name)
          returns the property of the feature that matches the submitted name
 void setProperty(FeatureProperty property)
          sets the value for the submitted property.
 

Method Detail

getId

public java.lang.String getId()
returns the id of the Feature. the id has to be a name space that must be unique for each feature. use the adress of the datasource in addition to a number for example .


getFeatureType

public FeatureType getFeatureType()
returns the FeatureType of this Feature


getProperties

public java.lang.Object[] getProperties()
returns the properties of the feature as array of Objects


getProperty

public java.lang.Object getProperty(java.lang.String name)
returns the property of the feature that matches the submitted name


getProperty

public java.lang.Object getProperty(int index)
returns the property of the feature that matches the submitted index


getGeometryProperties

public GM_Object[] getGeometryProperties()
returns all geometry properties of the feature. If no geometry could be found an GM_Object[] with zero length will be returned.


getDefaultGeometryProperty

public GM_Object getDefaultGeometryProperty()
Returns the default geometry of the Feature.

Returns:
default geometry or null, if the Feature has none

setProperty

public void setProperty(FeatureProperty property)
sets the value for the submitted property. if no property with the submitted exists the property will be added


getEnvelope

public GM_Envelope getEnvelope()
returns the envelope / boundingbox of the feature

Returns: