Class DataUtilities


  • public class DataUtilities
    extends Object
    Utility methods for working with gis data.
    Author:
    Nick Collier, Eric Tatara
    • Constructor Detail

      • DataUtilities

        public DataUtilities()
    • Method Detail

      • createFeatureSource

        public static org.geotools.data.FeatureSource createFeatureSource​(List<org.opengis.feature.simple.SimpleFeature> features)
        Creates a FeatureSource from a list of SimpleFeatures to be used in memory.
        Parameters:
        features - the list of SimpleFeatures
        Returns:
        a FeatureSource
      • createFeatureSource

        public static org.geotools.data.FeatureSource createFeatureSource​(org.geotools.feature.FeatureCollection collection)
        Adapts the specified feature collection into a FeatureSource with the specified FeatureType.
        Parameters:
        collection - the collection to adapt.
        type - the feature type
        Returns:
        the created FeatureSource