| java.lang.Object net.refractions.udig.core.internal.FeatureUtils
FeatureUtils | public class FeatureUtils (Code) | | A utility class for playing with features.
author: jeichar |
Method Summary | |
public static Collection<Feature> | copyFeature(Feature source, FeatureType destinationSchema, Map<String, String> attributeMap, MathTransform mt) | public static Map<String, String> | createAttributeMapping(FeatureType sourceSchema, FeatureType targetSchema) | public static Feature | createFeature(CoordinateReferenceSystem coordCRS, CoordinateReferenceSystem destinationCRS, FeatureType type, Coordinate[] coordinates, Class<T> geomType) | public static int | same(Feature feature1, Feature feature2) Returns 0 if the features are the same. | public static FeatureCollection | toFeatureCollection(Collection<Feature> collection, FeatureType type) |
copyFeature | public static Collection<Feature> copyFeature(Feature source, FeatureType destinationSchema, Map<String, String> attributeMap, MathTransform mt)(Code) | | |
createAttributeMapping | public static Map<String, String> createAttributeMapping(FeatureType sourceSchema, FeatureType targetSchema)(Code) | | |
createFeature | public static Feature createFeature(CoordinateReferenceSystem coordCRS, CoordinateReferenceSystem destinationCRS, FeatureType type, Coordinate[] coordinates, Class<T> geomType) throws Exception(Code) | | Create a new Features from the provided coordinates and of the type indicated by geomType
Parameters: coordCRS - The crs of the coordinates provided Parameters: destinationCRS - The desired crs of the geometry Parameters: type - the feature type of the object created Parameters: coordinates - the coordinates that will be used to create the new feature Parameters: geomType - the type of geometry that will be created A new features. throws: Exception - |
same | public static int same(Feature feature1, Feature feature2)(Code) | | Returns 0 if the features are the same. 1 if the attributes are the same but have different
featureIDs and -1 if attributes are different or are of different featureTypes.
Parameters: feature1 - Parameters: feature2 - |
toFeatureCollection | public static FeatureCollection toFeatureCollection(Collection<Feature> collection, FeatureType type)(Code) | | Adapts a collection of features to a FeatureCollection
Parameters: collection - |
|
|