SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Polygon query
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gayathris
Starting Member

11 Posts

Posted - 06/04/2012 :  06:45:53  Show Profile  Reply with Quote
Could you please tell me the sql query for the following case. I have a polygon which has id,name,latitude and longitude.
I used the query: select ASTEXT(polygon) AS polygon from table_name; This gives me all details but are congested. How can I seperate them?

Lamprey
Flowing Fount of Yak Knowledge

3829 Posts

Posted - 06/04/2012 :  13:01:16  Show Profile  Reply with Quote
The result is just a string so there are lots of ways to "parse" it. Can you describe what you want to do with the result? Or how you want to separate the result?
Go to Top of Page

gayathris
Starting Member

11 Posts

Posted - 06/13/2012 :  03:40:38  Show Profile  Reply with Quote
Hello Lamprey

Could you tell me how to parse it? In the end, I want to find whether a point is inside or outside the polygon.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000