Class AbstractFeatureFactoryImpl

    • Constructor Detail

      • AbstractFeatureFactoryImpl

        public AbstractFeatureFactoryImpl()
    • Method Detail

      • getCRSFactory

        public CRSFactory getCRSFactory()
      • setCRSFactory

        public void setCRSFactory​(CRSFactory crsFactory)
      • createAttribute

        public Attribute createAttribute​(Object value,
                                         AttributeDescriptor descriptor,
                                         String id)
        Description copied from interface: FeatureFactory
        Creates an attribute.
        Specified by:
        createAttribute in interface FeatureFactory
        Parameters:
        value - The value of the attribute, may be null.
        descriptor - The attribute descriptor.
        id - The id of the attribute, may be null.
      • createComplexAttribute

        public ComplexAttribute createComplexAttribute​(Collection<Property> value,
                                                       ComplexType type,
                                                       String id)
        Description copied from interface: FeatureFactory
        Creates a complex attribute.
        Specified by:
        createComplexAttribute in interface FeatureFactory
        Parameters:
        value - The value of the attribute, a collection of properties.
        type - The type of the attribute.
        id - The id of the attribute, may be null.
      • createFeature

        public Feature createFeature​(Collection<Property> value,
                                     AttributeDescriptor descriptor,
                                     String id)
        Description copied from interface: FeatureFactory
        Creates a feature.

        descriptor.getType() must be an instance of FeatureType.

        Specified by:
        createFeature in interface FeatureFactory
        Parameters:
        value - The value of the feature, a collection of properties.
        descriptor - The attribute descriptor.
        id - The id of the feature.
      • createFeature

        public Feature createFeature​(Collection<Property> value,
                                     FeatureType type,
                                     String id)
        Description copied from interface: FeatureFactory
        Creates a feature.
        Specified by:
        createFeature in interface FeatureFactory
        Parameters:
        value - The value of the feature, a collection of properties.
        type - The type of the feature.
        id - The id of the feature.
      • createSimpleFeature

        public SimpleFeature createSimpleFeature​(Object[] array,
                                                 SimpleFeatureType type,
                                                 String id)
        Description copied from interface: FeatureFactory
        Create a SimpleFeature from an array of objects.

        Please note that the provided array may be used directly by an implementation.

        Specified by:
        createSimpleFeature in interface FeatureFactory
        Parameters:
        array - Object array of values; this array may beused directly.
        type - The type of the simple feature.
        id - The id of the feature.