VectorLayer.UseAttributesIndex

UseAttributesIndex(string, string, bool)

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)
ParameterTypeDescription
indexPathStringPath to the index file.
attributeNameStringName of the attribute to build index on.
forceRebuildBooleanWhether to recreate index even if it already exists.

Exceptions

exceptioncondition
ArgumentNullExceptionArgument is null.
ArgumentExceptionAttribute with such name does not exist in the layer.
IOExceptionAn I/O error occurred.
InvalidOperationExceptionIndex for the specified attribute already loaded for this layer.
GisExceptionFile exists and it is not an attribute index file created by Aspose.GIS.

See Also


UseAttributesIndex(AbstractPath, string, bool)

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)
ParameterTypeDescription
indexPathAbstractPathPath to the index file.
attributeNameStringName of the attribute to build index on.
forceRebuildBooleanWhether to recreate index even if it already exists.

Exceptions

exceptioncondition
ArgumentNullExceptionArgument is null.
ArgumentExceptionAttribute with such name does not exist in the layer.
IOExceptionAn I/O error occurred.
InvalidOperationExceptionIndex for the specified attribute already loaded for this layer.
GisExceptionFile exists and it is not an attribute index file created by Aspose.GIS.

See Also