SlideShare une entreprise Scribd logo
1  sur  22
Télécharger pour lire hors ligne
GeoDjango:
Putting Django on the Map

Sunday, 9 February 2014
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
Sunday, 9 February 2014
Here be dragons
Sunday, 9 February 2014
Sunday, 9 February 2014
Sunday, 9 February 2014
•

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
Defining GeoDjango Models

Sunday, 9 February 2014
Creating Geographically Related Instances

Sunday, 9 February 2014
One advantage of modelling geographic relationships this way:

Sunday, 9 February 2014
What’s in the database?

Sunday, 9 February 2014
GEOS Instances

Sunday, 9 February 2014
Using Spatial Relationships
Possible places to check in

Nearest restaurant

Within user-defined area

Sunday, 9 February 2014
The closest bar I’ve been to before

The most popular bar in London

Sunday, 9 February 2014
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
Time to output for the web

Sunday, 9 February 2014
The Admin Interface

Sunday, 9 February 2014
https://www.sharegeo.ac.uk/
Sunday, 9 February 2014
+

Sunday, 9 February 2014

=
+

Sunday, 9 February 2014

=
Postcodes

https://github.com/gareth-lloyd/postcode_latlng

Sunday, 9 February 2014
Thank you!
London Django Coding Session - Biweekly
Hosted by:

Conversocial - always hiring Django people
@godawful
glloyd@gmail.com
Sunday, 9 February 2014

Contenu connexe

Similaire à GeoDjango: Putting Django on the Map

Useful Web 2.0 Tools in Secondary Geography, Mick Law, Contour Education
Useful Web 2.0 Tools in Secondary Geography, Mick Law, Contour EducationUseful Web 2.0 Tools in Secondary Geography, Mick Law, Contour Education
Useful Web 2.0 Tools in Secondary Geography, Mick Law, Contour Educationbecnicholas
 
2015 FOSS4G Track: Getting Started with FOSS4G: The Newbie’s Perspective by M...
2015 FOSS4G Track: Getting Started with FOSS4G: The Newbie’s Perspective by M...2015 FOSS4G Track: Getting Started with FOSS4G: The Newbie’s Perspective by M...
2015 FOSS4G Track: Getting Started with FOSS4G: The Newbie’s Perspective by M...GIS in the Rockies
 
DevOpsDays Jakarta: State of DevOps 2018
DevOpsDays Jakarta: State of DevOps 2018DevOpsDays Jakarta: State of DevOps 2018
DevOpsDays Jakarta: State of DevOps 2018Matt Ray
 
The State Of DevOps 2018 - Matt Ray
The State Of DevOps 2018 - Matt RayThe State Of DevOps 2018 - Matt Ray
The State Of DevOps 2018 - Matt RayDevOpsDaysJKT
 
Google Search History
Google Search HistoryGoogle Search History
Google Search HistoryAndra Keay
 
Comprehensive Overview of the Geoweb
Comprehensive Overview of the GeowebComprehensive Overview of the Geoweb
Comprehensive Overview of the GeowebGovernment/CU Denver
 
Cybercasing and privacy implications of geo tagging
Cybercasing and privacy implications of geo tagging Cybercasing and privacy implications of geo tagging
Cybercasing and privacy implications of geo tagging Prayukth K V
 
Optimizing Authentic Cloud Based Collaborations v5
Optimizing Authentic Cloud Based Collaborations v5Optimizing Authentic Cloud Based Collaborations v5
Optimizing Authentic Cloud Based Collaborations v5Roxann D. Riskin
 
Introduction to Geographic Information System (GIS)
Introduction to Geographic Information System (GIS)Introduction to Geographic Information System (GIS)
Introduction to Geographic Information System (GIS)Shashank Singh
 

Similaire à GeoDjango: Putting Django on the Map (15)

Geoeverything
GeoeverythingGeoeverything
Geoeverything
 
Where should-you-go
Where should-you-goWhere should-you-go
Where should-you-go
 
IMW2014 Tools Scan
IMW2014 Tools ScanIMW2014 Tools Scan
IMW2014 Tools Scan
 
OS GT
OS GTOS GT
OS GT
 
Useful Web 2.0 Tools in Secondary Geography, Mick Law, Contour Education
Useful Web 2.0 Tools in Secondary Geography, Mick Law, Contour EducationUseful Web 2.0 Tools in Secondary Geography, Mick Law, Contour Education
Useful Web 2.0 Tools in Secondary Geography, Mick Law, Contour Education
 
GIS_Day_2016
GIS_Day_2016GIS_Day_2016
GIS_Day_2016
 
2015 FOSS4G Track: Getting Started with FOSS4G: The Newbie’s Perspective by M...
2015 FOSS4G Track: Getting Started with FOSS4G: The Newbie’s Perspective by M...2015 FOSS4G Track: Getting Started with FOSS4G: The Newbie’s Perspective by M...
2015 FOSS4G Track: Getting Started with FOSS4G: The Newbie’s Perspective by M...
 
DevOpsDays Jakarta: State of DevOps 2018
DevOpsDays Jakarta: State of DevOps 2018DevOpsDays Jakarta: State of DevOps 2018
DevOpsDays Jakarta: State of DevOps 2018
 
The State Of DevOps 2018 - Matt Ray
The State Of DevOps 2018 - Matt RayThe State Of DevOps 2018 - Matt Ray
The State Of DevOps 2018 - Matt Ray
 
Google Search History
Google Search HistoryGoogle Search History
Google Search History
 
Comprehensive Overview of the Geoweb
Comprehensive Overview of the GeowebComprehensive Overview of the Geoweb
Comprehensive Overview of the Geoweb
 
Cybercasing and privacy implications of geo tagging
Cybercasing and privacy implications of geo tagging Cybercasing and privacy implications of geo tagging
Cybercasing and privacy implications of geo tagging
 
Optimizing Authentic Cloud Based Collaborations v5
Optimizing Authentic Cloud Based Collaborations v5Optimizing Authentic Cloud Based Collaborations v5
Optimizing Authentic Cloud Based Collaborations v5
 
iCame! iSaw! iGoogled!
iCame! iSaw! iGoogled!iCame! iSaw! iGoogled!
iCame! iSaw! iGoogled!
 
Introduction to Geographic Information System (GIS)
Introduction to Geographic Information System (GIS)Introduction to Geographic Information System (GIS)
Introduction to Geographic Information System (GIS)
 

Dernier

Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 

Dernier (20)

Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 

GeoDjango: Putting Django on the Map