dbTalk Databases Forums  

Nearest distance from points to line segmenst

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Nearest distance from points to line segmenst in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Harry B.
 
Posts: n/a

Default Nearest distance from points to line segmenst - 10-04-2011 , 01:41 PM






I'm new to the spatial functionality of MS SQL Server 2008.

I have a table tblPoints with about 3000 point coorodinates and
another table tblLines with about 100000 polygon coordinates. Each
polygons is made of various numbers of line segments.

How looks the sql statement to get the nearest polygon or line segment
to each point?

TIA,
Harry B.

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Nearest distance from points to line segmenst - 10-04-2011 , 04:06 PM






Harry B. (bongoplayer (AT) gmail (DOT) com) writes:
Quote:
I'm new to the spatial functionality of MS SQL Server 2008.

I have a table tblPoints with about 3000 point coorodinates and
another table tblLines with about 100000 polygon coordinates. Each
polygons is made of various numbers of line segments.

How looks the sql statement to get the nearest polygon or line segment
to each point?
I recommend that you post your question to
http://social.msdn.microsoft.com/For...patial/threads

No matter how much like newsgroups over forum, the spatial stuff goes
completely over my head, so I can't help.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.