public interface ShapeWriterDelegate
ShapeWriter
.
An instance of an implementing class may be passed to a
ShapeWriter
, which will then delegate any decisions about what
type of features to create a Shapefile for and which attributes that
Shapefile should have back to this instance.Modifier and Type | Method and Description |
---|---|
List |
attributes(Geometry geometry)
Returns an ordered list of the attributes of a particular feature to be
added to the Shapefile.
|
SimpleFeatureType |
featureType(GeometryDescriptor geometryDescriptor)
Returns a definition of the feature type and the attributes to be
written to the Shapefile.
|
SimpleFeatureType featureType(GeometryDescriptor geometryDescriptor) throws SchemaException
geometryDescriptor
- a class providing the magic constant used by
GeoTools to identify the geometry column in the ShapefileSchemaException
DataUtilities.createType
List attributes(Geometry geometry)
featureType(org.opengis.feature.type.GeometryDescriptor)
definition.geometry
- the feature the attributes of which to returnGeometry.getUserData()