|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vividsolutions.jump.feature.FeatureUtil
public class FeatureUtil
Useful utility functions for working with Features.
Feature| Nested Class Summary | |
|---|---|
static class |
FeatureUtil.IDComparator
Compares two Features for order based on their feature ID. |
| Constructor Summary | |
|---|---|
FeatureUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
areAllNonSpatialAttributesNull(Feature feature)
Returns whether all attributes are null (other than the Geometry attribute, which is not checked) |
static void |
copyAttributes(Feature a,
Feature b)
Although Feature implements Cloneable, this method is useful when the two Features are implemented with different classes. |
static int |
nextID()
Increments and returns the feature-ID counter |
static Feature |
toFeature(com.vividsolutions.jts.geom.Geometry g,
FeatureSchema schema)
Creates a new Feature from the given Geometry, with nominal values for the attributes. |
static java.util.List |
toGeometries(java.util.Collection features)
Returns the n Geometries extracted from the given n Features |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FeatureUtil()
| Method Detail |
|---|
public static Feature toFeature(com.vividsolutions.jts.geom.Geometry g,
FeatureSchema schema)
g - the Geometry to convertschema - metadata for the Feature to create
public static java.util.List toGeometries(java.util.Collection features)
public static int nextID()
Feature.getID()
public static void copyAttributes(Feature a,
Feature b)
public static boolean areAllNonSpatialAttributesNull(Feature feature)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||