Class FeatureBuilder


  • public class FeatureBuilder
    extends Object
    • Constructor Detail

      • FeatureBuilder

        public FeatureBuilder​(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