|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.feature.FeatureDataset
public class FeatureDataset
Default implementation of FeatureCollection.
| Constructor Summary | |
|---|---|
FeatureDataset(java.util.Collection newFeatures,
FeatureSchema featureSchema)
Creates a FeatureDataset, initialized with a group of Features. |
|
FeatureDataset(FeatureSchema featureSchema)
Creates a FeatureDataset. |
|
| Method Summary | |
|---|---|
void |
add(Feature feature)
Adds a feature to this collection. |
void |
addAll(java.util.Collection features)
Adds multiple features to this collection. |
void |
clear()
Removes all features from this collection. |
boolean |
contains(Feature feature)
Returns whether or not this Feature is in this collection |
com.vividsolutions.jts.geom.Envelope |
getEnvelope()
Because the envelope is cached, the envelope may be incorrect if you later change a Feature's geometry using Feature#setGeometry. |
Feature |
getFeature(int index)
Returns the Feature at the given index (zero-based). |
java.util.List |
getFeatures()
Returns an unmodifiable List of the features in this collection |
FeatureSchema |
getFeatureSchema()
Returns information about this FeatureCollection |
void |
invalidateEnvelope()
Clears the cached envelope of this FeatureDataset's Features. |
boolean |
isEmpty()
Returns whether this collection has no features. |
java.util.Iterator |
iterator()
Returns an Iterator over the features |
java.util.List |
query(com.vividsolutions.jts.geom.Envelope envelope)
A quick search for features, using an envelope comparison. |
java.util.Collection |
remove(com.vividsolutions.jts.geom.Envelope env)
Removes the features which intersect the given envelope |
void |
remove(Feature feature)
Removes a feature from this collection. |
void |
removeAll(java.util.Collection features)
Removes multiple features from this collection. |
int |
size()
Returns the number of features in this collection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FeatureDataset(java.util.Collection newFeatures,
FeatureSchema featureSchema)
newFeatures - an initial group of features to add to this FeatureDatasetfeatureSchema - the types of the attributes of the features in this collectionpublic FeatureDataset(FeatureSchema featureSchema)
featureSchema - the types of the attributes of the features in this collection| Method Detail |
|---|
public Feature getFeature(int index)
public FeatureSchema getFeatureSchema()
FeatureCollection
getFeatureSchema in interface FeatureCollectionpublic com.vividsolutions.jts.geom.Envelope getEnvelope()
getEnvelope in interface FeatureCollectionpublic java.util.List getFeatures()
FeatureCollection
getFeatures in interface FeatureCollectionpublic boolean isEmpty()
FeatureCollection
isEmpty in interface FeatureCollectionpublic java.util.List query(com.vividsolutions.jts.geom.Envelope envelope)
FeatureCollection
query in interface FeatureCollectionenvelope - the envelope to query against
public void add(Feature feature)
FeatureCollection
add in interface FeatureCollectionfeature - a Feature to add to the end of this collectionpublic boolean contains(Feature feature)
public java.util.Collection remove(com.vividsolutions.jts.geom.Envelope env)
remove in interface FeatureCollectionpublic void remove(Feature feature)
FeatureCollection
remove in interface FeatureCollectionfeature - a Feature to remove from this collectionpublic void clear()
clear in interface FeatureCollectionpublic int size()
FeatureCollection
size in interface FeatureCollectionpublic java.util.Iterator iterator()
FeatureCollection
iterator in interface FeatureCollectionpublic void invalidateEnvelope()
public void addAll(java.util.Collection features)
FeatureCollection
addAll in interface FeatureCollectionpublic void removeAll(java.util.Collection features)
FeatureCollection
removeAll in interface FeatureCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||