public interface FeatureFactory
Geotools 2.0: As Features always require a FeatureType the best place to implement this is in the FeatureType itself, thus the FeatureType interface extends this interface. Other FeatureFactories may be implemented, but they should probably be constructed with a FeatureType.
Geotools 2.1: This class is under revision, pleae help out with feedback. Please see experimental FeatureFactory2 (a subclass) for the current best idea of what is needed.
Modifier and Type | Method and Description |
---|---|
SimpleFeature |
create(Object[] attributes)
Deprecated.
Schema information is required
|
SimpleFeature |
create(Object[] attributes,
String featureID)
Deprecated.
Schema information is required
|
SimpleFeature create(Object[] attributes) throws IllegalAttributeException
attributes
- the array of attribute valuesIllegalAttributeException
- if the FeatureType does not validate the attributes.SimpleFeature create(Object[] attributes, String featureID) throws IllegalAttributeException
attributes
- the array of attribute values.featureID
- the feature ID.IllegalAttributeException
- if the FeatureType does not validate the attributes.Copyright © 1996–2019 Geotools. All rights reserved.