The<br />Geospatial<br />Shapes <br />of <br />Things to Come<br />SQLBits - The 7 Wonders of SQL<br />Simon Munro – EMC C...
rathergood.com – the internet is made of cats<br />
Spatial Ubiquity<br />Old people<br />People who don’t have problems with location privacy<br />Johnathan Ross and Stephen...
Spatial Data Skills<br />SQL Server Experts<br />Spatial Data and GIS Experts<br />MS SQL Spatial Employees<br />
The Geography Spatial Datatype<br />Point<br />Polygon<br />Latitude<br /><ul><li>Altitude
Distance from Start
Projection
Accuracy
Bearing</li></ul>Longitude<br />
Spheroids, Ellipsoids & Geoids<br />
Spatial Indexes<br />Quadtree<br />RTree<br />
Spatial Indexes<br />4 level quad grid<br />(As used in SQL Server)<br />(Isaac Kunen)<br />
Geocoding<br />Lookup a geographic coordinate from : <br />Existing geographic scheme<br />Place Name<br />Advert?<br />In...
Microsoft and Spatial Data<br />SQL Server<br />No standalone spatial <br />indexing services<br />Report Builder<br />No ...
SQL Server as a Spatial Tool<br />Storage<br />Persisted<br />Spatial Indexes<br />Updatable<br />Combination of spatial a...
SQL Server as a Spatial Tool<br />Bottleneck<br />May couple with transactional <br />data too tightly<br />Incomplete fea...
What does this mean to me?<br />No app developer tools <br />(or interest)<br />BI bigger than UI <br />(for now)<br />SQL...
Lets look at it a bit<br />
Aggregating Spatial Data<br />What do we GROUP BY?<br />political<br />geographic<br />postal<br />grid<br />Correct?<br /...
An Arbitrary Grouping Grid<br />1<br />Determine the grid<br />2<br />Convert grid into geospatial polygons<br />90°<br />...
Culling Spatial Data<br />Remove less relevant points<br />
Upcoming SlideShare
Loading in...5
×

The (Geospatial) Shapes of Things to Come

978

Published on

SQLBits 7 presentation on spatial data

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

  • Be the first to like this

No Downloads
Views
Total Views
978
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
11
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

The (Geospatial) Shapes of Things to Come

  1. 1. The<br />Geospatial<br />Shapes <br />of <br />Things to Come<br />SQLBits - The 7 Wonders of SQL<br />Simon Munro – EMC Consulting<br />simonmunro.com<br />
  2. 2. rathergood.com – the internet is made of cats<br />
  3. 3. Spatial Ubiquity<br />Old people<br />People who don’t have problems with location privacy<br />Johnathan Ross and Stephen Fry<br />
  4. 4. Spatial Data Skills<br />SQL Server Experts<br />Spatial Data and GIS Experts<br />MS SQL Spatial Employees<br />
  5. 5. The Geography Spatial Datatype<br />Point<br />Polygon<br />Latitude<br /><ul><li>Altitude
  6. 6. Distance from Start
  7. 7. Projection
  8. 8. Accuracy
  9. 9. Bearing</li></ul>Longitude<br />
  10. 10. Spheroids, Ellipsoids & Geoids<br />
  11. 11. Spatial Indexes<br />Quadtree<br />RTree<br />
  12. 12. Spatial Indexes<br />4 level quad grid<br />(As used in SQL Server)<br />(Isaac Kunen)<br />
  13. 13. Geocoding<br />Lookup a geographic coordinate from : <br />Existing geographic scheme<br />Place Name<br />Advert?<br />Individual Location?<br />
  14. 14. Microsoft and Spatial Data<br />SQL Server<br />No standalone spatial <br />indexing services<br />Report Builder<br />No support in <br />Entity Framework<br />Bing<br />No native .NET <br />class library<br />Maps<br />Map Control<br />No support in SSIS <br />for spatial<br />Geocoding<br />
  15. 15. SQL Server as a Spatial Tool<br />Storage<br />Persisted<br />Spatial Indexes<br />Updatable<br />Combination of spatial and <br />transactional data<br />Lower TCO than traditional GIS<br />Close to BI environment<br />
  16. 16. SQL Server as a Spatial Tool<br />Bottleneck<br />May couple with transactional <br />data too tightly<br />Incomplete feature set<br />String conversions in T-SQL<br />
  17. 17. What does this mean to me?<br />No app developer tools <br />(or interest)<br />BI bigger than UI <br />(for now)<br />SQL is good enough<br />Spatial data will be added <br />to existing schemas<br />
  18. 18. Lets look at it a bit<br />
  19. 19. Aggregating Spatial Data<br />What do we GROUP BY?<br />political<br />geographic<br />postal<br />grid<br />Correct?<br />Relevant?<br />Transferable?<br />
  20. 20. An Arbitrary Grouping Grid<br />1<br />Determine the grid<br />2<br />Convert grid into geospatial polygons<br />90°<br />180°<br />0°<br />-90°<br />
  21. 21. Culling Spatial Data<br />Remove less relevant points<br />
  22. 22. Culling inside a polygon<br />All Points<br />Ranked Points<br />Top3 Points<br />11<br />Map Tile 111<br />Map Tile 111<br />Map Tile 111<br />4<br />1<br />1<br />9<br />5<br />2<br />2<br />7<br />10<br />3<br />3<br />6<br />12<br />8<br />
  23. 23. Bing Maps Quadkeys<br />ZoomLevel = 6, Quadkey = 031313<br />http://ecn.t3.tiles.virtualearth.net/tiles/r031313.jpeg?g=563&mkt=en-gb&n=z<br />ZoomLevel = 9, Quadkey= 031313131<br />http://ecn.t3.tiles.virtualearth.net/tiles/r031313131.jpeg?g=563&mkt=en-gb&n=z<br />ZoomLevel = 13, Quadkey= 0313131311123<br />http://ecn.t3.tiles.virtualearth.net/tiles/r0313131311123.jpeg?g=563&mkt=en-gb&n=z<br />
  24. 24. Links<br />Busses in Chicago<br />Marine Traffic<br />Prime Meridian at the O2<br />AntoninGuttman (84): R-Trees - A Dynamic Index Structure for Spatial Searching<br />Howard’s GB Postcode Data<br />Aviation Formulas<br />Spatial Functions (Javascript)<br />How to convert OS Grid References<br />Bing Maps Tile System<br />Isaac Kunen - Basic Multi-Level Grids<br />
  25. 25. Are you in shape?<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×