Method CreateSpatialIndexLatLong
- Namespace
- YndigoBlue.Velocity.Model
- Assembly
- YndigoBlue.Velocity.dll
CreateSpatialIndexLatLong(string, string, double, double, double, double, double, double, double)
Creates a spatial index on a geography column using WGS 84 (latitude/longitude) world-coverage defaults.
public SpatialIndex CreateSpatialIndexLatLong(string name, string column, double xmin = -180, double ymin = -90, double xmax = 90, double ymax = 180, double smallGridSize = 0.01, double mediumGridSize = 0.1, double largeGridSize = 1)
Parameters
namestringThe index name.
columnstringThe name of the Geography column to index.
xmindoubleMinimum longitude. Defaults to
-180.ymindoubleMinimum latitude. Defaults to
-90.xmaxdoubleMaximum longitude. Defaults to
90.ymaxdoubleMaximum latitude. Defaults to
180.smallGridSizedoubleFine grid cell size. Defaults to
0.01degrees.mediumGridSizedoubleMedium grid cell size. Defaults to
0.1degrees.largeGridSizedoubleCoarse grid cell size. Defaults to
1.0degrees.
Returns
- SpatialIndex
The newly created SpatialIndex.