Presentation is loading. Please wait.

Presentation is loading. Please wait.

Spatial Data Types And Indexing SQL Server 2008

Similar presentations


Presentation on theme: "Spatial Data Types And Indexing SQL Server 2008"— Presentation transcript:

1 Spatial Data Types And Indexing SQL Server 2008
Bob King

2 Data Types geometry geography
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 Overlaps Distance Touches Equals Within
Intersects Union geometry; = geometry::STPolyFromText('POLYGON ((5 5, 10 5, 10 10, 5 5))', 0);

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 identifier to 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


Download ppt "Spatial Data Types And Indexing SQL Server 2008"

Similar presentations


Ads by Google