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
Geometrys |
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
Geometrys
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
Geometrys
and adds optional attributes containing the length and area of the Geometry. |
public static FeatureCollection createFromGeometry(java.util.Collection geoms)
Geometrysgeoms - a collection of Geometryspublic static FeatureDataset createFromGeometryWithLength(java.util.Collection geoms, java.lang.String attrName)
Geometrys
and adds an attribute containing the length of the Geometry. The attribute
name is given by the argument attrNamegeoms - a collection of GeometrysattrName - the name to use for the length attributepublic static FeatureDataset createFromGeometry(java.util.Collection geoms, FeatureSchema featureSchema)
geoms - a collection of GeometrysfeatureSchema - the schema to use for the feature collectionpublic static FeatureDataset createFromGeometryWithLengthAndArea(java.util.Collection geoms, java.lang.String attrNameLen, java.lang.String attrNameArea)
Geometrys
and adds optional attributes containing the length and area of the Geometry.geoms - a collection of GeometrysattrNameLen - 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)