Method DropSpatialIndex
- Namespace
- YndigoBlue.Velocity.Engine
- Assembly
- YndigoBlue.Velocity.dll
DropSpatialIndex(SpatialIndex)
Drops (deletes) a spatial index from the database.
public void DropSpatialIndex(SpatialIndex spatialIndex)
Parameters
spatialIndexSpatialIndexThe SpatialIndex object representing the spatial index to drop.
Examples
using (var m = new Manager(conn))
{
var schema = m.LoadSchema("app");
var table = schema["locations"];
var index = table.SpatialIndexes["si_geom"];
m.DropSpatialIndex(index);
}
Exceptions
- DbException
Thrown when a database error occurs.