Spatial Indexes


 

AspMap takes advantage of the presence of a spatial index associated with a Layer. When a spatial index is present, your application can realize significant performance improvements in zoom, pan operations, the SearchShape, SearchBuffer, SearchNearest and SearchByDistance methods.

File-based layers

There is a file that constitutes the spatial index of an shapefile or TAB file. This file has the same name as the .shp or .tab file, and has .stx extension for shapefiles and .ttx extension for TAB files. It should be present in the same folder as the .shp or .tab file.

 

This file should be created by the Spatial Index Builder utility (INDEXBLD.EXE) or BuildIndex method.

 

NOTE: if you have changed the contents of a shapefile of TAB file you have to rebuild the associated index file.

Database Layers

Spatial databases support spatial indexing of geometry fields. Each spatial database engine supports its own set of commands and tools for spatial indexing. Additional information is available below.

 

Oracle: http://docs.oracle.com/cd/B28359_01/appdev.111/b28400/sdo_index_query.htm

 

MySQL: http://dev.mysql.com/doc/refman/5.6/en/optimizing-spatial-analysis.html

 

PostgreSQL: http://postgis.net/docs/using_postgis_dbmanagement.html#id361290

 

SQL Server: http://technet.microsoft.com/en-us/library/bb964712(v=sql.105).aspx


© 2018 VDS Technologies
Converted from CHM to HTML with chm2web Standard 2.85 (unicode)