GeoDjango: Putting Django on the Map

2,249 views

Published on

Introduction to GeoDjano. Django Weekend Cardiff

Published in: Technology, Education
0 Comments
15 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,249
On SlideShare
0
From Embeds
0
Number of Embeds
12
Actions
Shares
0
Downloads
60
Comments
0
Likes
15
Embeds 0
No embeds

No notes for slide

GeoDjango: Putting Django on the Map

  1. 1. GeoDjango: Putting Django on the Map Sunday, 9 February 2014
  2. 2. Tobler’s First Law of Geography: "Everything is related to everything else, but near things are more related than distant things." Tobler, W. (1970) "A computer movie simulating urban growth in the Detroit region". Economic Geography, 46(2): 234-240. Sunday, 9 February 2014
  3. 3. Sunday, 9 February 2014
  4. 4. Here be dragons Sunday, 9 February 2014
  5. 5. Sunday, 9 February 2014
  6. 6. Sunday, 9 February 2014
  7. 7. • Install PostGIS (postgis.net/install/) • • • You can use other dbs, but... Install libraries (docs.djangoproject.com/...) Add django.contrib.gis to INSTALLED_APPS and you’re hot to trot Sunday, 9 February 2014
  8. 8. Defining GeoDjango Models Sunday, 9 February 2014
  9. 9. Creating Geographically Related Instances Sunday, 9 February 2014
  10. 10. One advantage of modelling geographic relationships this way: Sunday, 9 February 2014
  11. 11. What’s in the database? Sunday, 9 February 2014
  12. 12. GEOS Instances Sunday, 9 February 2014
  13. 13. Using Spatial Relationships Possible places to check in Nearest restaurant Within user-defined area Sunday, 9 February 2014
  14. 14. The closest bar I’ve been to before The most popular bar in London Sunday, 9 February 2014
  15. 15. Lookup Type bbcontains bboverlaps contained contains contains_properly coveredby covers crosses disjoint distance_gt distance_gte distance_lt distance_lte dwithin equals exact intersects overlaps relate same_as touches within left right overlaps_left overlaps_right overlaps_above overlaps_below strictly_above strictly_below Sunday, 9 February 2014 PostGIS X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X Oracle X SpatiaLite MySQL X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X
  16. 16. Time to output for the web Sunday, 9 February 2014
  17. 17. The Admin Interface Sunday, 9 February 2014
  18. 18. https://www.sharegeo.ac.uk/ Sunday, 9 February 2014
  19. 19. + Sunday, 9 February 2014 =
  20. 20. + Sunday, 9 February 2014 =
  21. 21. Postcodes https://github.com/gareth-lloyd/postcode_latlng Sunday, 9 February 2014
  22. 22. Thank you! London Django Coding Session - Biweekly Hosted by: Conversocial - always hiring Django people @godawful glloyd@gmail.com Sunday, 9 February 2014

×