| java.lang.Object org.geotools.feature.iso.simple.ArraySimpleFeatureFactory
ArraySimpleFeatureFactory | public class ArraySimpleFeatureFactory implements SimpleFeatureFactory(Code) | | A SimpleFeatureFactory that produces an implementation that directly wraps an
array of object values.
This implementation is designed to be as close to the previous geotools
DefaultFeature implementation as possible while still meeting the
requirements of the GeoAPI feature model.
This implementation is marked as a SimpleFeature (as it is only capable of
storing directly bound Types with no multiplicity.
Although the use of SimpleFeatureFactory is straight forward and direct we
have chosen to implement FeatureFactory as well, this allows any and all code
to work with SimpleFeatures (as a SimpleFeatureType by definition will only
describe content that can be created via this factory).
author: Jody |
Field Summary | |
CRSFactory | crsFactory Q: Why do I need this? I am not making content? only holding it. | GeometryFactory | gf Q: Why do I need this? I am not making content? only holding it. |
Method Summary | |
public Association | createAssociation(Attribute arg0, AssociationDescriptor arg1) | public AssociationDescriptor | createAssociationDescriptor(AssociationType associationType, Name name, int min, int max) Create a stub associations descriptor, will be used as a parameter to
by createFeatureCollectio
This is only used by generic feature model code following a
SimpleFeatureCollectionType to the letter, we will unwrap the
create association and make use of the reference type directly. | public Attribute | createAttribute(Object arg0, AttributeDescriptor arg1, String arg2) | public AttributeDescriptor | createAttributeDescriptor(AttributeType arg0, Name arg1, int arg2, int arg3, boolean arg4) | public BooleanAttribute | createBooleanAttribute(Boolean arg0, AttributeDescriptor arg1) | public ComplexAttribute | createComplexAttribute(Collection arg0, AttributeDescriptor arg1, String arg2) | public ComplexAttribute | createComplexAttribute(Collection arg0, ComplexType arg1, String arg2) | public Feature | createFeature(Collection arg0, AttributeDescriptor arg1, String arg2) | public Feature | createFeature(Collection values, FeatureType type, String id) | public FeatureCollection | createFeatureCollection(Collection arg0, AttributeDescriptor arg1, String arg2) | public FeatureCollection | createFeatureCollection(Collection properties, FeatureCollectionType type, String id) | public GeometryAttribute | createGeometryAttribute(Object arg0, AttributeDescriptor arg1, String arg2, CoordinateReferenceSystem arg3) | public NumericAttribute | createNumericAttribute(Number arg0, AttributeDescriptor arg1) | public SimpleFeature | createSimpleFeature(SimpleFeatureType type, String fid, Object[] values) Direct creation of a SimpleFeature from a provided SimpleFeatureType, it
is understood that the provided array of values maps directly to the
attribute descriptors in the provided type. | public SimpleFeature | createSimpleFeature(List attributes, SimpleFeatureType type, String id) | public SimpleFeatureCollection | createSimpleFeatureCollection(SimpleFeatureCollectionType type, String fid) Constructs a MemorySimpleFeatureCollection, not often used as datastores
will provide a custom collection (for an example see PostGIS). | public SimpleFeatureCollection | createSimpleFeatureCollection(AttributeDescriptor descriptor, String arg1) | public TemporalAttribute | createTemporalAttribute(Date arg0, AttributeDescriptor arg1) | public TextAttribute | createTextAttribute(CharSequence arg0, AttributeDescriptor arg1) | public CRSFactory | getCRSFactory() | public GeometryFactory | getGeometryFactory() | public void | setCRSFactory(CRSFactory factory) | public void | setGeometryFactory(GeometryFactory geometryFactory) |
crsFactory | CRSFactory crsFactory(Code) | | Q: Why do I need this? I am not making content? only holding it.
A: Anyone producing may need this.
|
gf | GeometryFactory gf(Code) | | Q: Why do I need this? I am not making content? only holding it.
A: Anyone producing may need this.
|
createAssociation | public Association createAssociation(Attribute arg0, AssociationDescriptor arg1)(Code) | | |
createAssociationDescriptor | public AssociationDescriptor createAssociationDescriptor(AssociationType associationType, Name name, int min, int max)(Code) | | Create a stub associations descriptor, will be used as a parameter to
by createFeatureCollectio
This is only used by generic feature model code following a
SimpleFeatureCollectionType to the letter, we will unwrap the
create association and make use of the reference type directly.
|
createAttribute | public Attribute createAttribute(Object arg0, AttributeDescriptor arg1, String arg2)(Code) | | |
createAttributeDescriptor | public AttributeDescriptor createAttributeDescriptor(AttributeType arg0, Name arg1, int arg2, int arg3, boolean arg4)(Code) | | |
createBooleanAttribute | public BooleanAttribute createBooleanAttribute(Boolean arg0, AttributeDescriptor arg1)(Code) | | |
createComplexAttribute | public ComplexAttribute createComplexAttribute(Collection arg0, AttributeDescriptor arg1, String arg2)(Code) | | |
createComplexAttribute | public ComplexAttribute createComplexAttribute(Collection arg0, ComplexType arg1, String arg2)(Code) | | |
createFeatureCollection | public FeatureCollection createFeatureCollection(Collection arg0, AttributeDescriptor arg1, String arg2)(Code) | | |
createFeatureCollection | public FeatureCollection createFeatureCollection(Collection properties, FeatureCollectionType type, String id)(Code) | | |
createGeometryAttribute | public GeometryAttribute createGeometryAttribute(Object arg0, AttributeDescriptor arg1, String arg2, CoordinateReferenceSystem arg3)(Code) | | |
createNumericAttribute | public NumericAttribute createNumericAttribute(Number arg0, AttributeDescriptor arg1)(Code) | | |
createSimpleFeature | public SimpleFeature createSimpleFeature(SimpleFeatureType type, String fid, Object[] values)(Code) | | Direct creation of a SimpleFeature from a provided SimpleFeatureType, it
is understood that the provided array of values maps directly to the
attribute descriptors in the provided type.
Parameters: type - SimpleFeatureType of the created Feature, non null Parameters: id - To be used as the Feature ID for the created Feature, non null Parameters: values - Attribute values for the created feature, if null the created feature will be empty |
createSimpleFeature | public SimpleFeature createSimpleFeature(List attributes, SimpleFeatureType type, String id)(Code) | | |
createSimpleFeatureCollection | public SimpleFeatureCollection createSimpleFeatureCollection(SimpleFeatureCollectionType type, String fid)(Code) | | Constructs a MemorySimpleFeatureCollection, not often used as datastores
will provide a custom collection (for an example see PostGIS).
Parameters: type - Type of the collection being created, non null Parameters: id - Feature ID of the collection being created, non null Parameters: contents - Initial contents (ie Collection<SimpleFeatures>) ornull |
createSimpleFeatureCollection | public SimpleFeatureCollection createSimpleFeatureCollection(AttributeDescriptor descriptor, String arg1)(Code) | | |
createTemporalAttribute | public TemporalAttribute createTemporalAttribute(Date arg0, AttributeDescriptor arg1)(Code) | | |
createTextAttribute | public TextAttribute createTextAttribute(CharSequence arg0, AttributeDescriptor arg1)(Code) | | |
getCRSFactory | public CRSFactory getCRSFactory()(Code) | | |
getGeometryFactory | public GeometryFactory getGeometryFactory()(Code) | | |
setCRSFactory | public void setCRSFactory(CRSFactory factory)(Code) | | |
setGeometryFactory | public void setGeometryFactory(GeometryFactory geometryFactory)(Code) | | |
|
|