| org.geotools.feature.FeatureFactory
All known Subclasses: org.geotools.feature.FeatureFactoryImpl,
FeatureFactory | public interface FeatureFactory (Code) | | An interface for the construction of Features.
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.
version: $Id: FeatureFactory.java 20651 2006-07-21 07:51:54Z jgarnett $ |
Method Summary | |
Feature | create(Object[] attributes) Creates a new feature, with a generated unique featureID. | Feature | create(Object[] attributes, String featureID) Creates a new feature, with the proper featureID.
Parameters: attributes - the array of attribute values. Parameters: featureID - the feature ID. |
create | Feature create(Object[] attributes) throws IllegalAttributeException(Code) | | Creates a new feature, with a generated unique featureID. This is less
than ideal, as a FeatureID should be persistant over time, generally
created by a datasource. This method is more for testing that doesn't
need featureID.
Parameters: attributes - the array of attribute values The created feature throws: IllegalAttributeException - if the FeatureType does not validatethe attributes. |
|
|