| java.lang.Object com.vividsolutions.jump.feature.FeatureUtil
FeatureUtil | public class FeatureUtil (Code) | | Useful utility functions for working with Features.
See Also: Feature |
Inner Class :public static class IDComparator implements Comparator | |
areAllNonSpatialAttributesNull | public static boolean areAllNonSpatialAttributesNull(Feature feature)(Code) | | Returns whether all attributes are null (other than the Geometry
attribute, which is not checked)
|
copyAttributes | public static void copyAttributes(Feature a, Feature b)(Code) | | Although Feature implements Cloneable, this method is useful
when the two Features are implemented with different classes.
|
nextID | public static int nextID()(Code) | | Increments and returns the feature-ID counter
See Also: Feature.getID |
toFeature | public static Feature toFeature(Geometry g, FeatureSchema schema)(Code) | | Creates a new Feature from the given Geometry, with nominal values for
the attributes.
Parameters: g - the Geometry to convert Parameters: schema - metadata for the Feature to create a new Feature containing the Geometry and default values for theattributes |
toGeometries | public static List toGeometries(Collection features)(Code) | | Returns the n Geometries extracted from the given n Features
|
|
|