org.deegree.feature
Class Features

java.lang.Object
  extended by org.deegree.feature.Features

public class Features
extends Object

Provides utility methods for common tasks that involve Feature and FeatureCollection objects.

Version:
$Revision: 32083 $, $Date: 2011-10-05 10:06:29 +0200 (Wed, 05 Oct 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

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

Features

public Features()
Method Detail

toCollection

public static FeatureCollection toCollection(FeatureInputStream is)
Returns all members of the given 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 Features instances from the current position in the iteration sequence.

Returns:
members as feature collection, never null

sortFc

public static FeatureCollection sortFc(FeatureCollection fc,
                                       SortProperty[] sortCrits)
Returns a sorted FeatureCollection.

Parameters:
fc - feature collection to be sorted, must not be null
sortCrits - sort criteria
Returns:
sorted feature collection, never null

findFeaturesAndGeometries

public 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.

Parameters:
node - typed object node to be scanned, can be null
geometries - found geometry objects (not References), must not be null
features - found feature objects (not References), must not be null
fids - found feature ids, must not be null
gids - found geometry ids, must not be null


Copyright © 2011. All Rights Reserved.