Class FeatureDatasetFactory


  • public class FeatureDatasetFactory
    extends Object
    Utility functions to create different kinds of FeatureDatasets
    • Constructor Detail

      • FeatureDatasetFactory

        public FeatureDatasetFactory()
    • Method Detail

      • createFromGeometry

        public static FeatureCollection createFromGeometry​(Collection geoms)
        Creates a FeatureCollection from a Collection of Geometrys
        Parameters:
        geoms - a collection of Geometrys
      • createFromGeometryWithLength

        public static FeatureDataset createFromGeometryWithLength​(Collection geoms,
                                                                  String attrName)
        Creates a FeatureCollection from a Collection of Geometrys and adds an attribute containing the length of the Geometry. The attribute name is given by the argument attrName
        Parameters:
        geoms - a collection of Geometrys
        attrName - the name to use for the length attribute