|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.model.feature.Feature_Impl
org.deegree_impl.model.feature.FeatureCollection_Impl
This interface provides services for the management of groups of features. These groups can come into being for a number of reasons: e.g. a project as a whole, for the scope of a query, as the result of a query or arbitrarily selected by a user for some common manipulation. A feature's membership of a particular FeatureCollection does not necessarily imply any relationship with other member features. Composite or compound features which own constituent member Features (e.g. an Airport composed of Terminals, Runways, Aprons, Hangars, etc) may also support the FeatureCollection interface to provide a generic means for clients to access constituent members without needing to be aware of the internal implementation details of the compound feature.
-----------------------------------------------------------------------
Field Summary | |
private java.util.List |
collection
|
private GM_Envelope |
envelope
|
private FeatureType |
ft
|
Fields inherited from class org.deegree_impl.model.feature.Feature_Impl |
featureType, geoProps, id, properties, propRef |
Constructor Summary | |
(package private) |
FeatureCollection_Impl(java.lang.String id,
Feature[] feature)
constructor for initializing a featur collection with an id and an array of features. |
(package private) |
FeatureCollection_Impl(java.lang.String id,
FeatureType featureType,
FeatureProperty[] properties,
int initialCapacity)
|
(package private) |
FeatureCollection_Impl(java.lang.String id,
int initialCapacity)
constructor for initializing a featur collection with an id and a initial capacity. |
Method Summary | |
void |
appendFeature(Feature feature)
Appends a feature to the collection. |
void |
appendFeatures(Feature[] features)
adds a list of features to the collection |
void |
appendFeatures(FeatureCollection fc)
adds a list of features to the collection |
Feature[] |
getAllFeatures()
returns an array of all features |
GM_Envelope |
getEnvelope()
returns the envelope / boundingbox of the feature collection |
Feature |
getFeature(int index)
returns the feature that is assigned to the submitted index. |
Feature |
getFeatureById(java.lang.String id)
returns the feature that is assigned to the submitted id. |
FeatureType |
getFeatureType()
returns the FeatureType of this Feature(Collection) |
int |
getSize()
returns the number of features within the collection |
Feature |
removeFeature(Feature feature)
removes the submitted feature from the collection |
Feature |
removeFeature(int index)
removes a feature identified by its index (row) from the the feature collection. |
Feature |
removeFeatureById(java.lang.String id)
removes the feature that is assigned to the submitted id. |
java.lang.String |
toString()
|
Methods inherited from class org.deegree_impl.model.feature.Feature_Impl |
getDefaultGeometryProperty, getGeometryProperties, getId, getProperties, getProperty, getProperty, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.deegree.model.feature.Feature |
getDefaultGeometryProperty, getGeometryProperties, getId, getProperties, getProperty, getProperty, setProperty |
Field Detail |
private java.util.List collection
private FeatureType ft
private GM_Envelope envelope
Constructor Detail |
FeatureCollection_Impl(java.lang.String id, FeatureType featureType, FeatureProperty[] properties, int initialCapacity)
FeatureCollection_Impl(java.lang.String id, int initialCapacity)
FeatureCollection_Impl(java.lang.String id, Feature[] feature)
Method Detail |
public FeatureType getFeatureType()
getFeatureType
in interface Feature
getFeatureType
in class Feature_Impl
public Feature[] getAllFeatures()
getAllFeatures
in interface FeatureCollection
public Feature getFeature(int index)
getFeature
in interface FeatureCollection
public Feature getFeatureById(java.lang.String id)
getFeatureById
in interface FeatureCollection
public Feature removeFeature(int index)
removeFeature
in interface FeatureCollection
public Feature removeFeature(Feature feature)
removeFeature
in interface FeatureCollection
public Feature removeFeatureById(java.lang.String id)
removeFeatureById
in interface FeatureCollection
public void appendFeature(Feature feature)
appendFeature
in interface FeatureCollection
public void appendFeatures(Feature[] features)
FeatureCollection
appendFeatures
in interface FeatureCollection
public void appendFeatures(FeatureCollection fc)
FeatureCollection
appendFeatures
in interface FeatureCollection
public int getSize()
getSize
in interface FeatureCollection
public GM_Envelope getEnvelope()
getEnvelope
in interface Feature
getEnvelope
in class Feature_Impl
public java.lang.String toString()
toString
in class Feature_Impl
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |