Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Investigating the new Spatial Types in SQL Server 2008 - Part 1


Investigating the new Spatial Types in SQL Server 2008 - Part 1

Author
Message
Bennie Haelen
Bennie Haelen
Grasshopper
Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)

Group: General Forum Members
Points: 10 Visits: 63
Comments posted to this topic are about the item Investigating the new Spatial Types in SQL Server 2008 - Part 1
Anipaul
Anipaul
SSCertifiable
SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)SSCertifiable (6.9K reputation)

Group: General Forum Members
Points: 6861 Visits: 1407
Good one. It will be a good series.



René de Vries
René de Vries
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 Visits: 57
Good intro.

Looking forward to some real world TSQL examples.
alastair-804470
alastair-804470
SSC Rookie
SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)

Group: General Forum Members
Points: 25 Visits: 105
Nice article - you seem to have laid out a good foundation of topics to cover. There are just a couple of points I wanted to add:

The SQL Server-native geography and geometry datatypes are NOT stored using Well-Known Binary format. WKB is administered by the OGC, just like WKT and GML are. Internally, SQL Server uses a custom binary format.

Although the WKT representation of a geometry/geography instance may be defined using a z coordinate (representing the elevation/depth of a point), none of the inbuilt methods actually perform any operations using this coordinate, so it's for storage only. All operations take place on the (flat) 2-dimensional plane of the geometry datatype, or the (curved) ellipsoidal surface of the geography datatype.

You say that geographic coordinates of latitude/longitude are most common, but that depends a lot on the sort of data you want to use - for instance, here in the UK most data uses the GB national grid system (and many other European countries use their own national grid), and most of the detailed spatial information for the US is provided at state-level using the relevant state plane coordinate system (such as from http://www.mass.gov/mgis/database.htm). If you want to use this sort of data, you need the geometry datatype, not geography.

Other than that - good stuff! I look forward to the rest of the series.

For anybody interested in finding out more about spatial in SQL Server 2008, check out:
"Beginning Spatial with SQL Server 2008" (Apress)
http://www.apress.com/book/view/9781430218296
Haole Boy
Haole Boy
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 5
Well done.

Although here in the latter part of my career I am firmly positioned in the small business development world, your enticing introduction to this series of articles immediately took me back to my previous "sub-career" as an analyst and department manager in the defense systems simulation arena. How we could have used OO and spatial databases in those days!

Looking forward to more...
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search