org.deegree.framework.util
Class FeatureUtils
java.lang.Object
org.deegree.framework.util.FeatureUtils
public class FeatureUtils
- extends Object
The FeatureUtils
class offeres several static methods for handling features.
TODO add class documentation here.
- Version:
- $Revision: 22732 $, $Date: 2010-02-24 15:38:35 +0100 (Wed, 24 Feb 2010) $
- Author:
- Judit Mays, last edited by: $Author: jmays $
Method Summary |
static FeatureCollection[] |
separateFeaturesForShapes(FeatureCollection fc)
This method separates the features in the given FeatureCollection according to their geometry type into Points,
MulitPoints, (Multi-)Curves, (Multi-)Surfaces. features with geometries that do not match these geometry types
are collected in a five group (others). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeatureUtils
public FeatureUtils()
separateFeaturesForShapes
public static FeatureCollection[] separateFeaturesForShapes(FeatureCollection fc)
- This method separates the features in the given FeatureCollection according to their geometry type into Points,
MulitPoints, (Multi-)Curves, (Multi-)Surfaces. features with geometries that do not match these geometry types
are collected in a five group (others).
The separation according to geometryType is needed to prepare the feature collections for creating shape files.
- Parameters:
fc
-
- Returns:
- an array of five feature collections, containing the features of the original fc separated according to
their geometry type. The first entry contains Points, the second contains MultiPoints, the third contains
Curves and MultiCurves, the fourth contains Surfaces and MultiSurfaces. If the original fc contains
features with MultiGeoemetries, these features are added to the fourth fc.
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org