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.
Copy 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 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.
Copy 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