public class FeatureBuilder extends Object
| Constructor and Description |
|---|
FeatureBuilder(Map<String,Class> propertyTypes) |
| Modifier and Type | Method and Description |
|---|---|
org.geotools.feature.FeatureCollection |
createFeatureCollection(List<org.opengis.feature.simple.SimpleFeature> simpleFeatures) |
org.opengis.feature.simple.SimpleFeature |
createSimpleFeature(org.locationtech.jts.geom.Geometry geometry,
Map<String,Object> featureProperties) |
static String |
featureCollectionToJson(org.geotools.feature.FeatureCollection featureCollection)
Writes a feature collection to json, including null values.
|
public org.opengis.feature.simple.SimpleFeature createSimpleFeature(org.locationtech.jts.geom.Geometry geometry,
Map<String,Object> featureProperties)
public org.geotools.feature.FeatureCollection createFeatureCollection(List<org.opengis.feature.simple.SimpleFeature> simpleFeatures)
public static String featureCollectionToJson(org.geotools.feature.FeatureCollection featureCollection) throws IOException
featureCollection - IOExceptionCopyright © 2021. All rights reserved.