SlideShare ist ein Scribd-Unternehmen logo
1 von 22
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Ähnlich wie 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
 

Ähnlich wie 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)
 

Kürzlich hochgeladen

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
 
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
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
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
 
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
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
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
 
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
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
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
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
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
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
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
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 

Kürzlich hochgeladen (20)

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
 
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
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
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
 
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
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 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
 
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
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
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
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
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
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 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 .
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 

GeoDjango: Putting Django on the Map