in

Platinum Bay

Peace, Love and Visual Studio Team System

.NETicated

Visualizing Geography in SQL Server 2008

This is just too cool not to post. Many of you know about the DevEvents project I'm working on. If not, feel free to ping me. Part of the web application involves geo-context. Basically events are displayed to users (by default) based on their proximity to the event locations. To accomplish this I have several tables in the database with various geography related data. One of these tables takes advantage of the new SQL Server 2008 data type: Geography. This field essentially stores latitude and longitude, and SQL Server 2008 is then able to provide geography-related queries against it, like distance between two point.

But the really cool part for me so far is when you select data that contains the Geography data type. Along with the standard Results and Messages pane, there is a new 'Spatial results' pane. Clicking on this tab reveals a map-like visualization.

For the visualization below, I selected all points in Maine, Washington, Arizona, and Florida, and chose the Bonne projection. While I'd love to see all the points mapped, the visualization is limited to 5,000 results.

Anyway, just thought this was pretty cool!

Published Nov 13 2008, 05:50 AM by Steve
Filed under:

Comments

November 15, 2008 2:03 PM

A Leadership quote by John Naisbitt: Leadership involves finding a parade and getting in front of it.

 

Leave a Comment

(required )  
(optional )
(required )  
Add

About Steve

Steve Andrews has been working as a developer for more than 8 years. During this time, he has designed and developed applications in such widely varying areas as trust accounting, medical information management, supply chain management, and retail systems. He has firsthand developer experience with a variety of languages, including Java, VB, and .NET. Most recently, he has been immersed in SharePoint. He is currently employed at RDA Corporation in Philadelphia, PA, as a Software Engineer and a team member in the Architectural Guidance evangelism team. Steve is also an MTCS (x2), ICSOO, and .NET fanatic.
Powered by Community Server (Commercial Edition), by Telligent Systems
© Platinum Bay | Some Rights Reserved Creative Commons License

Disclaimer: The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or annonymous comments) - so keep it polite, please.