public class FeatureDatasetFactory
extends java.lang.Object
Constructor and Description |
---|
FeatureDatasetFactory() |
Modifier and Type | Method and Description |
---|---|
static FeatureCollection |
createFromGeometry(java.util.Collection geoms)
Creates a FeatureCollection from a Collection of
Geometry s |
static FeatureDataset |
createFromGeometry(java.util.Collection geoms,
FeatureSchema featureSchema)
|
static FeatureDataset |
createFromGeometryWithLength(java.util.Collection geoms,
java.lang.String attrName)
Creates a FeatureCollection from a Collection of
Geometry s
and adds an attribute containing the length of the Geometry. |
static FeatureDataset |
createFromGeometryWithLengthAndArea(java.util.Collection geoms,
java.lang.String attrNameLen,
java.lang.String attrNameArea)
Creates a FeatureCollection from a Collection of
Geometry s
and adds optional attributes containing the length and area of the Geometry. |
public static FeatureCollection createFromGeometry(java.util.Collection geoms)
Geometry
sgeoms
- a collection of Geometry
spublic static FeatureDataset createFromGeometryWithLength(java.util.Collection geoms, java.lang.String attrName)
Geometry
s
and adds an attribute containing the length of the Geometry. The attribute
name is given by the argument attrName
geoms
- a collection of Geometry
sattrName
- the name to use for the length attributepublic static FeatureDataset createFromGeometry(java.util.Collection geoms, FeatureSchema featureSchema)
geoms
- a collection of Geometry
sfeatureSchema
- the schema to use for the feature collectionpublic static FeatureDataset createFromGeometryWithLengthAndArea(java.util.Collection geoms, java.lang.String attrNameLen, java.lang.String attrNameArea)
Geometry
s
and adds optional attributes containing the length and area of the Geometry.geoms
- a collection of Geometry
sattrNameLen
- the name to use for the length attribute (or null
if not required)attrNameArea
- the name to use for the length attribute (or null
if not required)