Class FeatureDatasetFactory
- java.lang.Object
-
- org.locationtech.jts.jump.feature.FeatureDatasetFactory
-
public class FeatureDatasetFactory extends Object
Utility functions to create different kinds of FeatureDatasets
-
-
Constructor Summary
Constructors Constructor Description FeatureDatasetFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FeatureCollectioncreateFromGeometry(Collection geoms)Creates a FeatureCollection from a Collection ofGeometrysstatic FeatureDatasetcreateFromGeometryWithLength(Collection geoms, String attrName)Creates a FeatureCollection from a Collection ofGeometrys and adds an attribute containing the length of the Geometry.
-
-
-
Method Detail
-
createFromGeometry
public static FeatureCollection createFromGeometry(Collection geoms)
Creates a FeatureCollection from a Collection ofGeometrys- Parameters:
geoms- a collection ofGeometrys
-
createFromGeometryWithLength
public static FeatureDataset createFromGeometryWithLength(Collection geoms, String attrName)
Creates a FeatureCollection from a Collection ofGeometrys and adds an attribute containing the length of the Geometry. The attribute name is given by the argumentattrName- Parameters:
geoms- a collection ofGeometrysattrName- the name to use for the length attribute
-
-