|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.feature.Features
public class Features
Provides utility methods for common tasks that involve Feature
and FeatureCollection
objects.
Constructor Summary | |
---|---|
Features()
|
Method Summary | |
---|---|
static void |
findFeaturesAndGeometries(TypedObjectNode node,
Set<Geometry> geometries,
Set<Feature> features,
Set<String> fids,
Set<String> gids)
Determines all Feature and Geometry objects contained in the given TypedObjectNode and
their ids. |
static FeatureCollection |
sortFc(FeatureCollection fc,
SortProperty[] sortCrits)
Returns a sorted FeatureCollection . |
static FeatureCollection |
toCollection(FeatureInputStream is)
Returns all members of the given FeatureInputStream as a FeatureCollection . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Features()
Method Detail |
---|
public static FeatureCollection toCollection(FeatureInputStream is)
FeatureInputStream
as a FeatureCollection
.
NOTE: This method should not be called for very large result sets, as it introduces the overhead of keeping all
created feature instances in memory. The returned collection will contain all Feature
s instances from the
current position in the iteration sequence.
null
public static FeatureCollection sortFc(FeatureCollection fc, SortProperty[] sortCrits)
FeatureCollection
.
fc
- feature collection to be sorted, must not be null
sortCrits
- sort criteria
null
public static void findFeaturesAndGeometries(TypedObjectNode node, Set<Geometry> geometries, Set<Feature> features, Set<String> fids, Set<String> gids)
Feature
and Geometry
objects contained in the given TypedObjectNode
and
their ids.
node
- typed object node to be scanned, can be null
geometries
- found geometry objects (not Reference
s), must not be null
features
- found feature objects (not Reference
s), must not be null
fids
- found feature ids, must not be null
gids
- found geometry ids, must not be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |