public class OXFFeatureCollection extends OXFFeature implements Iterable<OXFFeature>
Modifier and Type | Field and Description |
---|---|
protected Collection<OXFFeature> |
features |
Constructor and Description |
---|
OXFFeatureCollection(String id,
OXFFeatureType featureType) |
OXFFeatureCollection(String id,
OXFFeatureType featureType,
Collection<OXFFeature> features) |
Modifier and Type | Method and Description |
---|---|
void |
add(Collection<OXFFeature> fCollection) |
void |
add(OXFFeature f) |
void |
add(OXFFeature[] fArray) |
boolean |
contains(OXFFeature f) |
boolean |
containsAll(Collection<OXFFeature> c) |
boolean |
equals(Object obj) |
com.vividsolutions.jts.geom.Geometry |
getBoundingBox() |
OXFFeature |
getFeature(String gmlID) |
OXFFeature |
getFeatureAtPoint(double worldX,
double worldY) |
OXFFeature |
getFeatureAtPoint(double worldX,
double worldY,
double worldZ) |
int |
hashCode() |
boolean |
isEmpty()
Returns
true if this collection contains no Feature s. |
Iterator<OXFFeature> |
iterator()
Returns an iterator that enumerates all of the features in this collection.
|
String |
produceDescription() |
int |
size() |
OXFFeature[] |
toArray()
Creates a
Feature array and populates it. |
List<OXFFeature> |
toList() |
Set<OXFFeature> |
toSet() |
createFrom, createFrom, getAttribute, getFeatureType, getGeometry, getID, getParent, getSpecifiedAttributes, setAttribute, setGeometry, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected Collection<OXFFeature> features
public OXFFeatureCollection(String id, OXFFeatureType featureType)
public OXFFeatureCollection(String id, OXFFeatureType featureType, Collection<OXFFeature> features)
public OXFFeature getFeatureAtPoint(double worldX, double worldY)
public OXFFeature getFeatureAtPoint(double worldX, double worldY, double worldZ)
public OXFFeature getFeature(String gmlID)
public com.vividsolutions.jts.geom.Geometry getBoundingBox()
getBoundingBox
in class OXFFeature
null
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 OXFFeature[] 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 Feature
s.true
if this collection contains no Feature
s.public int size()
public void add(OXFFeature[] fArray)
fArray
- public void add(Collection<OXFFeature> fCollection)
public void add(OXFFeature f)
public boolean contains(OXFFeature f)
public boolean containsAll(Collection<OXFFeature> c)
public String produceDescription()
produceDescription
in class OXFFeature
public int hashCode()
hashCode
in class OXFFeature
public boolean equals(Object obj)
equals
in class OXFFeature
Copyright © 2012–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.