BaseFeatureAttributeCollection Class

Summary: A FeatureAttributeCollection defines what attributes are available for a Feature.

Module: aspose.gis

Full Name: aspose.gis.BaseFeatureAttributeCollection

Aspose.PSD Version: 25.9.0

Properties

NameTypeAccessDescription
countintrGets the number of attributes in a Feature.
is_lockedboolrGets a value indicating whether this attribute collection is locked.

Methods

NameDescription
add(attribute)Adds an attribute to the collection.
contains(name)Determines whether the attribute collection contains an attribute with the specified name.
index_of(name)Searches for the attribute and returns the its zero-based index.
lock()Locks this attribute collection to prevent further modifications.
remove(index)Removes the attribute from the collection.
remove(name)Removes the attribute from the collection.

Method: add(attribute)

 add(attribute) 

Adds an attribute to the collection.

Parameters:

ParameterTypeDescription
attributeFeatureAttributeThe attribute to add.

Method: contains(name)

 contains(name) 

Determines whether the attribute collection contains an attribute with the specified name.

Parameters:

ParameterTypeDescription
namestringName of the attribute.

Returns

TypeDescription
boolif the attribute collection contains and attribute with the specified name; otherwise, .

Method: index_of(name)

 index_of(name) 

Searches for the attribute and returns the its zero-based index.

Parameters:

ParameterTypeDescription
namestringName of the attribute.

Returns

TypeDescription
intThe zero-based index of the attribute within the collection, if found; otherwise, –1.

Method: remove(index)

 remove(index) 

Removes the attribute from the collection.

Parameters:

ParameterTypeDescription
indexintIndex of the attribute.

Method: remove(name)

 remove(name) 

Removes the attribute from the collection.

Parameters:

ParameterTypeDescription
namestringName of the attribute.