Package repast.simphony.gis.util
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 DataUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods 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.
-
-
-
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
-
-