net.surveyos.sourceforge.bizzjump.core.util
Class FeatureUtils

java.lang.Object
  extended by net.surveyos.sourceforge.bizzjump.core.util.FeatureUtils

public class FeatureUtils
extends java.lang.Object

Provides a set of static utility methods that can be used to manipulate Feature objects. These methods should be moved to the com.vivid.solutions.jump.feature.FeatureUtil class as soon as possible. *


Constructor Summary
FeatureUtils()
           
 
Method Summary
static java.util.Collection<Feature> conform(java.util.Collection<Feature> features, FeatureSchema targetFeatureSchema)
          Returns a collection of Feature objects that have been cloned (or copied) from the collection provided as an argument.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureUtils

public FeatureUtils()
Method Detail

conform

public static java.util.Collection<Feature> conform(java.util.Collection<Feature> features,
                                                    FeatureSchema targetFeatureSchema)
Returns a collection of Feature objects that have been cloned (or copied) from the collection provided as an argument. The feature attribute values of all of the feature attributes in the collection provided as an argument that match the name and data type of a feature attribute in the FeatureSchema will be copied to the cloned features. In other words, this method copies all of the features in one collection to the other, and all of the feature attributes that "conform" to the supplied FeatureSchema are copied in addition to the feature geometry.

Parameters:
features - A collection of Feature objects that will be copied to the collection returned by method.
targetFeatureSchema - The FeatureSchema object that will be used to determine which feature attribute values will be copied to the cloned features.
Returns:
A collection with the cloned features.