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

More Related Content

PDF
はじめてのパターン認識 第6章 後半
PDF
continual learning survey
PDF
NIPS2010読み会: A New Probabilistic Model for Rank Aggregation
PPTX
【DL輪読会】AnyLoc: Towards Universal Visual Place Recognition
PDF
BERTに関して
PDF
単語の分散表現と構成性の計算モデルの発展
PDF
One Class SVMを用いた異常値検知
PDF
論文紹介:End-to-End Object Detection with Transformers
はじめてのパターン認識 第6章 後半
continual learning survey
NIPS2010読み会: A New Probabilistic Model for Rank Aggregation
【DL輪読会】AnyLoc: Towards Universal Visual Place Recognition
BERTに関して
単語の分散表現と構成性の計算モデルの発展
One Class SVMを用いた異常値検知
論文紹介:End-to-End Object Detection with Transformers

What's hot (20)

PDF
5 クラスタリングと異常検出
PDF
画像キャプションと動作認識の最前線 〜データセットに注目して〜(第17回ステアラボ人工知能セミナー)
PPTX
[研究室論文紹介用スライド] Adversarial Contrastive Estimation
PPT
iHT² Health IT Summit Atlanta - Case Study “Analytics Strategies to Improve Q...
PDF
[DL輪読会]The Neural Process Family−Neural Processes関連の実装を読んで動かしてみる−
PDF
Learning Convolutional Neural Networks for Graphs
PDF
PRML 5章 PP.227-PP.247
PDF
ゼロから始めるレコメンダシステム
PDF
PRML 2.3節
PPTX
主成分分析
PPTX
Distributed database Project ppt
PPTX
Unit 2 Fundamentals of React -------.pptx
PDF
検索可能暗号の概観と今後の展望(第2回次世代セキュア情報基盤ワークショップ)
PPTX
全体セミナー20170629
PDF
Disentanglement Survey:Can You Explain How Much Are Generative models Disenta...
PDF
[Ridge-i 論文読み会] ICLR2019における不完全ラベル学習
PDF
【Zansa】第17回 ブートストラップ法入門
PPTX
日曜数学会Vol5 up用 bessel関数
PPTX
PDF
文献紹介:Swin Transformer: Hierarchical Vision Transformer Using Shifted Windows
5 クラスタリングと異常検出
画像キャプションと動作認識の最前線 〜データセットに注目して〜(第17回ステアラボ人工知能セミナー)
[研究室論文紹介用スライド] Adversarial Contrastive Estimation
iHT² Health IT Summit Atlanta - Case Study “Analytics Strategies to Improve Q...
[DL輪読会]The Neural Process Family−Neural Processes関連の実装を読んで動かしてみる−
Learning Convolutional Neural Networks for Graphs
PRML 5章 PP.227-PP.247
ゼロから始めるレコメンダシステム
PRML 2.3節
主成分分析
Distributed database Project ppt
Unit 2 Fundamentals of React -------.pptx
検索可能暗号の概観と今後の展望(第2回次世代セキュア情報基盤ワークショップ)
全体セミナー20170629
Disentanglement Survey:Can You Explain How Much Are Generative models Disenta...
[Ridge-i 論文読み会] ICLR2019における不完全ラベル学習
【Zansa】第17回 ブートストラップ法入門
日曜数学会Vol5 up用 bessel関数
文献紹介:Swin Transformer: Hierarchical Vision Transformer Using Shifted Windows
Ad

Similar to GeoDjango: Putting Django on the Map (20)

PDF
GeoDjango & HTML5 Geolocation
PDF
Powerful geographic web framework GeoDjango
PDF
PyDX Presentation about Python, GeoData and Maps
PPTX
Corinne Hutchinson's 7/8/2015 PuPPy Presentation on GeoDjango
PPTX
Geo django
PDF
Introduction to GeoDjango
PPTX
Day 6 - PostGIS
PDF
Using python to analyze spatial data
PDF
Where should-you-go
PPTX
GeoRabble GovHack Sydney Intro
PDF
Comparing Geospatial Implementation in MongoDB, Postgres, and Elastic
PPT
3 Easy Ways to Reach Financial Freedom: How Twitter user Geo to win advertising
PDF
2017 RM-URISA Track: Spatial SQL - The Best Kept Secret in the Geospatial World
PDF
Putting Your Data on a Map
ODP
The Explosion of Geodata
PDF
EuroPython 2019: GeoSpatial Analysis using Python and JupyterHub
PDF
GeoCO GeoJSON & GeoLocate
PDF
What in the World
PDF
Phd defense slides
GeoDjango & HTML5 Geolocation
Powerful geographic web framework GeoDjango
PyDX Presentation about Python, GeoData and Maps
Corinne Hutchinson's 7/8/2015 PuPPy Presentation on GeoDjango
Geo django
Introduction to GeoDjango
Day 6 - PostGIS
Using python to analyze spatial data
Where should-you-go
GeoRabble GovHack Sydney Intro
Comparing Geospatial Implementation in MongoDB, Postgres, and Elastic
3 Easy Ways to Reach Financial Freedom: How Twitter user Geo to win advertising
2017 RM-URISA Track: Spatial SQL - The Best Kept Secret in the Geospatial World
Putting Your Data on a Map
The Explosion of Geodata
EuroPython 2019: GeoSpatial Analysis using Python and JupyterHub
GeoCO GeoJSON & GeoLocate
What in the World
Phd defense slides
Ad

Recently uploaded (20)

PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
Architecture types and enterprise applications.pdf
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
STKI Israel Market Study 2025 version august
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PPT
Geologic Time for studying geology for geologist
PDF
Getting started with AI Agents and Multi-Agent Systems
PPTX
Tartificialntelligence_presentation.pptx
PPT
Module 1.ppt Iot fundamentals and Architecture
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
Chapter 5: Probability Theory and Statistics
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PDF
Getting Started with Data Integration: FME Form 101
1 - Historical Antecedents, Social Consideration.pdf
Assigned Numbers - 2025 - Bluetooth® Document
Developing a website for English-speaking practice to English as a foreign la...
Architecture types and enterprise applications.pdf
Enhancing emotion recognition model for a student engagement use case through...
WOOl fibre morphology and structure.pdf for textiles
STKI Israel Market Study 2025 version august
A novel scalable deep ensemble learning framework for big data classification...
NewMind AI Weekly Chronicles – August ’25 Week III
Geologic Time for studying geology for geologist
Getting started with AI Agents and Multi-Agent Systems
Tartificialntelligence_presentation.pptx
Module 1.ppt Iot fundamentals and Architecture
O2C Customer Invoices to Receipt V15A.pptx
Group 1 Presentation -Planning and Decision Making .pptx
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Zenith AI: Advanced Artificial Intelligence
Chapter 5: Probability Theory and Statistics
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
Getting Started with Data Integration: FME Form 101

GeoDjango: Putting Django on the Map