Package de.narimo.georepo.server.layer
Class FeatureBuilder
- java.lang.Object
-
- de.narimo.georepo.server.layer.FeatureBuilder
-
public class FeatureBuilder extends Object
-
-
Constructor Summary
Constructors Constructor Description FeatureBuilder(GeometryType geometryType, Map<String,Class> propertyTypes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.geotools.feature.FeatureCollectioncreateFeatureCollection(List<org.opengis.feature.simple.SimpleFeature> simpleFeatures)org.opengis.feature.simple.SimpleFeaturecreateSimpleFeature(org.locationtech.jts.geom.Geometry geometry, Map<String,Object> featureProperties)static StringfeatureCollectionToJson(org.geotools.feature.FeatureCollection featureCollection)Writes a feature collection to json, including null values.
-
-
-
Constructor Detail
-
FeatureBuilder
public FeatureBuilder(GeometryType geometryType, Map<String,Class> propertyTypes)
-
-
Method Detail
-
createSimpleFeature
public org.opengis.feature.simple.SimpleFeature createSimpleFeature(org.locationtech.jts.geom.Geometry geometry, Map<String,Object> featureProperties)
-
createFeatureCollection
public org.geotools.feature.FeatureCollection createFeatureCollection(List<org.opengis.feature.simple.SimpleFeature> simpleFeatures)
-
featureCollectionToJson
public static String featureCollectionToJson(org.geotools.feature.FeatureCollection featureCollection) throws IOException
Writes a feature collection to json, including null values.- Parameters:
featureCollection-- Returns:
- Throws:
IOException
-
-