1 / 6

Spatial Data Types And Indexing SQL Server 2008

Spatial Data Types And Indexing SQL Server 2008. Bob King. Data Types. geometry Planar data geography Geodetic data (projection of the curve of the Earth) Represents points, polygons, regions, etc. in the same data type. Common Methods. Contains Distance Equals Intersects

ashlyn
Télécharger la présentation

Spatial Data Types And Indexing SQL Server 2008

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Spatial Data Types And IndexingSQL Server 2008 Bob King

  2. Data Types • geometry • Planar data • geography • Geodetic data (projection of the curve of the Earth) • Represents points, polygons, regions, etc. in the same data type

  3. Common Methods • Contains • Distance • Equals • Intersects • Overlaps • Touches • Within • Union DECLARE @g geometry; SET @g = geometry::STPolyFromText('POLYGON ((5 5, 10 5, 10 10, 5 5))', 0); SELECT @g.ToString();

  4. Indexing the geo* datatypes • Quad-tree based • Successively smaller grid cells

  5. Indexing the geo* datatypes • Coverage masks • Touched • Partially Covered • Interior • Map a cell identifierto a primary key • Map sub-cells

  6. Searching a geo* index • Select on a cell identifier using prefix matching: • (T.cell LIKE I.cell + ‘%’) OR (I.cell LIKE T.cell + ‘%_’) • Use existing SQL text searching optimizations

More Related