|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.n52.oxf.feature.OXFFeature
org.n52.oxf.feature.OXFFeatureCollection
public class OXFFeatureCollection
| Field Summary | |
|---|---|
protected Collection<OXFFeature> |
features
|
| Constructor Summary | |
|---|---|
OXFFeatureCollection(String id,
OXFFeatureType featureType)
|
|
OXFFeatureCollection(String id,
OXFFeatureType featureType,
Collection<OXFFeature> features)
|
|
| Method Summary | |
|---|---|
void |
add(Collection<OXFFeature> fCollection)
|
void |
add(OXFFeature f)
|
void |
add(OXFFeature[] fArray)
|
boolean |
contains(org.opengis.feature.Feature f)
Checks if the given feature is a member of this collection. |
boolean |
containsAll(Collection<org.opengis.feature.Feature> c)
Checks if every feature in the given collection is also a member of this feature collection. |
com.vividsolutions.jts.geom.Geometry |
getBoundingBox()
|
OXFFeature |
getFeature(String gmlID)
|
OXFFeature |
getFeatureAtPoint(double worldX,
double worldY)
|
OXFFeature |
getFeatureAtPoint(double worldX,
double worldY,
double worldZ)
|
boolean |
isEmpty()
Returns true if this collection contains no Features. |
Iterator<OXFFeature> |
iterator()
Returns an iterator that enumerates all of the features in this collection. |
static void |
main(String[] args)
|
String |
produceDescription()
|
int |
size()
Returns the size of the collection. |
org.opengis.feature.Feature[] |
toArray()
Creates a Feature array and populates it. |
List<OXFFeature> |
toList()
|
Set<OXFFeature> |
toSet()
|
| Methods inherited from class org.n52.oxf.feature.OXFFeature |
|---|
equals, getAttribute, getAttribute, getBounds, getFeatureType, getGeometry, getID, getParent, getSpecifiedAttributes, setAttribute, setAttribute, setGeometry, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Collection<OXFFeature> features
| Constructor Detail |
|---|
public OXFFeatureCollection(String id,
OXFFeatureType featureType)
id - featureType -
public OXFFeatureCollection(String id,
OXFFeatureType featureType,
Collection<OXFFeature> features)
id - featureType - features - | Method Detail |
|---|
public OXFFeature getFeatureAtPoint(double worldX,
double worldY)
worldX - worldY -
public OXFFeature getFeatureAtPoint(double worldX,
double worldY,
double worldZ)
worldX - worldY -
public OXFFeature getFeature(String gmlID)
public com.vividsolutions.jts.geom.Geometry getBoundingBox()
getBoundingBox in class OXFFeaturenull if this object
does not contain any features or the contained features have no geometry.public Iterator<OXFFeature> iterator()
iterator in interface Iterable<OXFFeature>public List<OXFFeature> toList()
public Set<OXFFeature> toSet()
public org.opengis.feature.Feature[] toArray()
throws OutOfMemoryError
Feature array and populates it.
OutOfMemoryError - if the feature collection is too large to fit into memory.public boolean isEmpty()
true if this collection contains no Features.
public int size()
public void add(OXFFeature[] fArray)
fArray - public void add(Collection<OXFFeature> fCollection)
fCollection - public void add(OXFFeature f)
f - public boolean contains(org.opengis.feature.Feature f)
public boolean containsAll(Collection<org.opengis.feature.Feature> c)
public String produceDescription()
produceDescription in class OXFFeaturepublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||