UseAttributesIndex

VectorLayer.UseAttributesIndex method (1 of 2)

Loads attribute index to speed up filtering by attributes value in filter methods like WhereGreater. If index does not exist creates it first. Use forceRebuild to force index recreation.

public void UseAttributesIndex(string indexPath, string attributeName, bool forceRebuild = false)
Parameter Type Description
indexPath String Path to the index file.
attributeName String Name of the attribute to build index on.
forceRebuild Boolean Whether to recreate index even if it already exists.

Exceptions

exception condition
ArgumentNullException Argument is null.
ArgumentException Attribute with such name does not exist in the layer.
IOException An I/O error occurred.
InvalidOperationException Index for the specified attribute already loaded for this layer.
GisException File exists and it is not an attribute index file created by Aspose.GIS.

See Also


VectorLayer.UseAttributesIndex method (2 of 2)

Loads attribute index to speed up filtering by attributes value in filter methods like WhereGreater. If index does not exist creates it first. Use forceRebuild to force index recreation.

public virtual void UseAttributesIndex(AbstractPath indexPath, string attributeName, 
    bool forceRebuild = false)
Parameter Type Description
indexPath AbstractPath Path to the index file.
attributeName String Name of the attribute to build index on.
forceRebuild Boolean Whether to recreate index even if it already exists.

Exceptions

exception condition
ArgumentNullException Argument is null.
ArgumentException Attribute with such name does not exist in the layer.
IOException An I/O error occurred.
InvalidOperationException Index for the specified attribute already loaded for this layer.
GisException File exists and it is not an attribute index file created by Aspose.GIS.

See Also