Package repast.simphony.gis.util
Class DataUtilities
java.lang.Object
repast.simphony.gis.util.DataUtilities
Utility methods for working with gis data.
- Author:
- Nick Collier, Eric Tatara
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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
-