Sql for Everything: GIS on the Web

  • 106 views
Uploaded on

An overview of geoprocessing in its best web incarnation: PostGIS

An overview of geoprocessing in its best web incarnation: PostGIS

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
106
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
3
Comments
0
Likes
1

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 For Everything Geoprocessing and Cartography With PostGIS Bill Morris – Geosprocket LLC
  • 2. Speedy Background • SQL = Structured Query Language • Beloved/BeHated by Database Admins • Runs Behind Nearly Everything SQL For Everything - Bill Morris - Geosprocket LLC
  • 3. Ever Fired Up a Computer? You’ve Used SQL. SQL For Everything - Bill Morris - Geosprocket LLC
  • 4. So What’s PostGIS? • A spatial extender for the PostgreSQL database system • Free as in Speech, Free as in Beer SQL For Everything - Bill Morris - Geosprocket LLC
  • 5. What’s Post-PostGIS? • A parody on Twitter. Pay no mind. SQL For Everything - Bill Morris - Geosprocket LLC
  • 6. What’s CartoDB? • A PostGIS environment built for the web • “Open-Source Fusion Tables” • Build your own server: https://github.com/CartoDB/cartodb20 • Or get a hosted account: http://cartodb.com/ SQL For Everything - Bill Morris - Geosprocket LLC
  • 7. SQL For Everything - Bill Morris - Geosprocket LLC
  • 8. SQL For Everything - Bill Morris - Geosprocket LLC
  • 9. Back to SQL. SQL For Everything - Bill Morris - Geosprocket LLC
  • 10. SQL as we know it Source: Chicago Crime Commission & Openstreetmap Contributors SQL For Everything - Bill Morris - Geosprocket LLC
  • 11. SELECT * FROM territory_all WHERE “NAME” LIKE ‘Latin%’ Source: Chicago Crime Commission & Openstreetmap Contributors SQL For Everything - Bill Morris - Geosprocket LLC
  • 12. SELECT * FROM territory_all WHERE name LIKE ‘Latin%’ SQL For Everything - Bill Morris - Geosprocket LLC
  • 13. Geoprocessing as we know it SQL For Everything - Bill Morris - Geosprocket LLC
  • 14. Geoprocessing in PostGIS SELECT ST_Whatever( geoprocess! ) SQL For Everything - Bill Morris - Geosprocket LLC
  • 15. Geoprocessing in PostGIS SQL For Everything - Bill Morris - Geosprocket LLC
  • 16. Buffer 500m SQL For Everything - Bill Morris - Geosprocket LLC
  • 17. Buffer 500m from the points that fall on Ashland Ave SQL For Everything - Bill Morris - Geosprocket LLC
  • 18. Append two layers of different geometry types SQL For Everything - Bill Morris - Geosprocket LLC
  • 19. Geoprocessing Optimized …png?sql=… SQL For Everything - Bill Morris - Geosprocket LLC
  • 20. ? SQL For Everything - Bill Morris - Geosprocket LLC
  • 21. This is Familiar google.com?q=GIS SQL For Everything - Bill Morris - Geosprocket LLC
  • 22. …png?sql=… SQL For Everything - Bill Morris - Geosprocket LLC
  • 23. http://2.tiles.cartocdn.com/geosprocket/tiles/vtparcels_burlington2002b/15/9714/11850.png SQL For Everything - Bill Morris - Geosprocket LLC
  • 24. http://2.tiles.cartocdn.com/geosprocket/tiles/vtparcels_burlington2002b/15/9714/11850.png?sql =SELECT * FROM vtparcels_burlington2002b WHERE area>8000 SQL For Everything - Bill Morris - Geosprocket LLC
  • 25. http://2.tiles.cartocdn.com/geosprocket/tiles/vtparcels_burlington2002b/15/9714/11850.png?sql =SELECT 20 as distance, st_buffer(the_geom_webmercator,50) as the_geom_webmercator FROM vtparcels_burlington2002b WHERE area>80000 SQL For Everything - Bill Morris - Geosprocket LLC
  • 26. Going off the Rails a Bit . . . https://gist.github.com/wboykinm/5533575 SQL For Everything - Bill Morris - Geosprocket LLC
  • 27. SQL For Everything - Bill Morris - Geosprocket LLC
  • 28. A Query Turns This . . . SQL For Everything - Bill Morris - Geosprocket LLC
  • 29. Into This. SQL For Everything - Bill Morris - Geosprocket LLC
  • 30. I’m barely scratching the surface of SQL here. https://gist.github.com/wboykinm/5533575 SQL For Everything - Bill Morris - Geosprocket LLC
  • 31. Why Care? Because the web wants to see your data SQL For Everything - Bill Morris - Geosprocket LLC
  • 32. SQL For Everything - Bill Morris - Geosprocket LLC
  • 33. SQL For Everything - Bill Morris - Geosprocket LLC
  • 34. SQL For Everything - Bill Morris - Geosprocket LLC
  • 35. SQL For Everything - Bill Morris - Geosprocket LLC
  • 36. PostGIS SQL For Everything - Bill Morris - Geosprocket LLC
  • 37. Thanks! Accepting all questions: wboykinm@geosprocket.com @vtcraghead SQL For Everything - Bill Morris - Geosprocket LLC