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 FeatureCollection
createFromGeometry(Collection geoms)
Creates a FeatureCollection from a Collection ofGeometry
sstatic FeatureDataset
createFromGeometryWithLength(Collection geoms, String attrName)
Creates a FeatureCollection from a Collection ofGeometry
s 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 ofGeometry
s- Parameters:
geoms
- a collection ofGeometry
s
-
createFromGeometryWithLength
public static FeatureDataset createFromGeometryWithLength(Collection geoms, String attrName)
Creates a FeatureCollection from a Collection ofGeometry
s and adds an attribute containing the length of the Geometry. The attribute name is given by the argumentattrName
- Parameters:
geoms
- a collection ofGeometry
sattrName
- the name to use for the length attribute
-
-