Download presentation
Presentation is loading. Please wait.
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.