Class DataUtilities

java.lang.Object
repast.simphony.gis.util.DataUtilities

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    static org.geotools.data.FeatureSource
    createFeatureSource(org.geotools.feature.FeatureCollection collection)
    Adapts the specified feature collection into a FeatureSource with the specified FeatureType.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DataUtilities

      public DataUtilities()
  • Method Details

    • 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