Your SlideShare is downloading. ×
0
SQL Server 2008 Spatial Data - Getting Started
SQL Server 2008 Spatial Data - Getting Started
SQL Server 2008 Spatial Data - Getting Started
SQL Server 2008 Spatial Data - Getting Started
SQL Server 2008 Spatial Data - Getting Started
SQL Server 2008 Spatial Data - Getting Started
SQL Server 2008 Spatial Data - Getting Started
SQL Server 2008 Spatial Data - Getting Started
SQL Server 2008 Spatial Data - Getting Started
SQL Server 2008 Spatial Data - Getting Started
SQL Server 2008 Spatial Data - Getting Started
SQL Server 2008 Spatial Data - Getting Started
SQL Server 2008 Spatial Data - Getting Started
SQL Server 2008 Spatial Data - Getting Started
SQL Server 2008 Spatial Data - Getting Started
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

SQL Server 2008 Spatial Data - Getting Started

2,028

Published on

Overview of SQL 2008 spatial data types, spatial data operations, geocoding, and visualization. This does not include the visualization options added to SQL 2008 R2.

Overview of SQL 2008 spatial data types, spatial data operations, geocoding, and visualization. This does not include the visualization options added to SQL 2008 R2.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,028
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
26
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. SQL Server 2008 Spatial Data
    Dan Crawford
    Integrated Network Strategies
    dcrawford@insindy.com
    http://www.insindy.com
  • 2. What is spatial data?
    Geometric
    Represents data in a 2D plain, similar to graph paper in high school. Units are user-defined and could be inches, miles, pixels, etc.
  • 3. What is spatial data?
    Geographic
    Represents data points using angles of Latitude and Longitude. Latitude measures North/South, and Longitude measures degrees East/West of Prime Meridian
  • 4. System Requirements
    SQL Server 2008 Express or higher
    Dev Tools
    Visual Studio 2005, 2008, or 2010
    SQL Management Studio 2008
    Not currently supported on SQL Azure, but will be soon
  • 5. Uses of spatial data
    Used by central cancer registries for statistical analysis with other geography specific data sources, such as census data
    Integrated route mapping with MapPoint, Google Maps, etc
    Geographical business intelligence analytics
  • 6. Geometry data type
    Geometry data type stores points, lines, polygons, and collections of geometric objects
    Represent using WKT (well-known text), WKB (well-known binary), or GML (geography markup language)
    WKT seems to be most common
  • 7. WKT Markup
    POINT(x y)
    LINESTRING(x1 y1,x2 y2)
    POLYGON((x1 y1,x2 y2,x3 y3,x4 y4,x1 y1))
    GEOMETRYCOLLECTION(Geo1, Geo2, …)
  • 8. Spatial Expressions
  • 9. More Spatial Expressions
  • 10. Geocoding
    Geography data type does not directly understanding mailing address data
    Mailing addresses must be converted to latitude/longitude coordinates
    Geocoding = conversion of geographic data like address or zip code to geographic coordinates
    Options – MapPoint/Bing Map Services, Google Maps API, many others
  • 11. Geocoding Example
  • 12. Rendering Options
    SQL Management Studio 2008 – very basic for query testing
    VirtualEarth
    Google Maps or similar
    Dundas mapping component
  • 13. Spatial Indexing
    Images from Microsoft Technet
  • 14. Spatial Indexing
    CREATE SPATIAL INDEX SPATIAL_Hospitals ON dbo.Hospitals(LocationGeography)
    USING GEOGRAPHY_GRID
    WITH( GRIDS = ( LEVEL_1 = MEDIUM,
    LEVEL_2 = MEDIUM,
    LEVEL_3 = MEDIUM,
    LEVEL_4 = MEDIUM),
    CELLS_PER_OBJECT = 16, STATISTICS_NORECOMPUTE = OFF,
    ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  • 15. SQL Server 2008 R2
    Adds native mapping support to SSRS

×