VectorLayer.UseSpatialIndex
UseSpatialIndex(string, bool)
Laadt ruimtelijke index om het filteren op attribuutwaarde te versnellen in filtermethodes zoalsWhereIntersects enNearestTo. Als de index niet bestaat, wordt deze eerst gemaakt. GebruikforceRebuild indexrecreatie afdwingen.
public void UseSpatialIndex(string indexPath, bool forceRebuild = false)
| Parameter | Type | Beschrijving |
|---|
| indexPath | String | Pad naar het indexbestand. |
| forceRebuild | Boolean | Of de index opnieuw moet worden gemaakt, zelfs als deze al bestaat. |
Uitzonderingen
| uitzondering | voorwaarde |
|---|
| ArgumentNullException | Pad isnull. |
| IOException | Er is een I/O-fout opgetreden. |
| InvalidOperationException | Ruimtelijke index is al geladen voor deze laag. |
| GisException | Het bestand bestaat en het is geen ruimtelijk indexbestand gemaakt door Aspose.GIS. |
Zie ook
UseSpatialIndex(AbstractPath, bool)
Laadt ruimtelijke index om het filteren op attribuutwaarde te versnellen in filtermethodes zoalsWhereIntersects enNearestTo. Als de index niet bestaat, wordt deze eerst gemaakt. GebruikforceRebuild indexrecreatie afdwingen.
public virtual void UseSpatialIndex(AbstractPath indexPath, bool forceRebuild = false)
| Parameter | Type | Beschrijving |
|---|
| indexPath | AbstractPath | Pad naar het indexbestand. |
| forceRebuild | Boolean | Of de index opnieuw moet worden gemaakt, zelfs als deze al bestaat. |
Uitzonderingen
| uitzondering | voorwaarde |
|---|
| ArgumentNullException | Pad isnull. |
| IOException | Er is een I/O-fout opgetreden. |
| InvalidOperationException | Ruimtelijke index is al geladen voor deze laag. |
| GisException | Het bestand bestaat en het is geen ruimtelijk indexbestand gemaakt door Aspose.GIS. |
Zie ook