|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SimpleFeatureFactory
This interface denotes a factory capable of producing SimpleFeature.
This is an abstract factory describing how to create a set of classes targeted towards a SimpleFeature implementation. The methods below define no additional capability over Simp
| Method Summary | |
|---|---|
Attribute |
createAttribute(Object value,
AttributeDescriptor descriptor,
String id)
Creates a new attribute (always nested). |
GeometryAttribute |
createGeometryAttribute(Object value,
AttributeDescriptor desc,
String id,
CoordinateReferenceSystem crs)
Creates a new geometry attribute (always nested). |
SimpleFeature |
createSimpleFeature(List attributes,
SimpleFeatureType type,
String id)
Creates a new simple feature. |
SimpleFeatureCollection |
createSimpleFeatureCollection(SimpleFeatureCollectionType type,
String id)
Createsa a new simple feature collection. |
| Method Detail |
|---|
Attribute createAttribute(Object value,
AttributeDescriptor descriptor,
String id)
As currently defined this factory allows for the explicit creation of:
value - The value of the attribute, may be null depending on type.descriptor - The attribute descriptor.id - The id of the attribute, may be null depending on type.
GeometryAttribute createGeometryAttribute(Object value,
AttributeDescriptor desc,
String id,
CoordinateReferenceSystem crs)
value - The initial value of the attribute, may be null depending on
the type of the type of the attribute.desc - The attribute descriptor.id - The id of the attribute, may be null depending on the type.crs - The coordinate reference system of the attribute, may be null.
IllegalArgumentException - If desc.getType() does not return an
instanceof GeometryType.
SimpleFeature createSimpleFeature(List attributes,
SimpleFeatureType type,
String id)
attributes - attributes order dicated by provided typetype - Type of SimpleFeature to be createdid - The id of the feature, (fid), may be null depending on the type.
IllegalArgumentException - If desc.getType() does not return an
instanceof SimpleFeatureType.
SimpleFeatureCollection createSimpleFeatureCollection(SimpleFeatureCollectionType type,
String id)
type - Type of SimpleFeatureCollection to be createdid - The id of the feature collection
IllegalArgumentException - If desc.getType() does not return an
instanceof SimpleFeatureCollectionType.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||