Using Table Valued Functions in SQL Server 2005 To Implement a Spatial Data Library

Jim Gray, Alex Szalay, and Gyorgy Fekete

Abstract

This article explains how to add spatial search functions (point-near-point and point in polygon) to Microsoft SQL Serverâ„¢ 2005 using C# and table-valued functions. It is possible to use this library to add spatial search to your application without writing any special code. The library implements the public-domain C# Hierarchical Triangular Mesh (HTM) algorithms from Johns Hopkins University. That C# library is connected to SQL Server 2005 via a set of scalar-valued and table-valued functions. These functions act as a spatial index.

Details

Publication typeTechReport
NumberMSR-TR-2005-122
Pages45
InstitutionMicrosoft Research
> Publications > Using Table Valued Functions in SQL Server 2005 To Implement a Spatial Data Library