Skip to content

PostGIS tutorial with hosted read-only database and notebooks

Notifications You must be signed in to change notification settings

mapmeld/postgis-zimbabwe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postgis-zimbabwe

A PostGIS tutorial for PyCon Zimbabwe 2018, with Python and SQL as the main languages.

How you can help:

Participatory

My goal was to create a PostGIS demo which would be accessible to students if they have not installed Python, PostgreSQL, or PostGIS, and even if I end up running the workshop without an internet connection:

  • SQL queries and Python scripts for interacting with local PostGIS
  • Basic server config for a read-only PostGIS in the cloud
  • (ideally forkable) Python notebooks for PostGIS in the cloud

Topics

  • Finding and downloading geodata (govt data, OpenStreetMap)
  • Setting up PostGIS
  • SQL Review and Added Features of PostGIS
  • Importing CSVs and geodata
  • Python scripts for import, export, querying
  • Sample queries with map frontends: point-in-polygon, nearest point, buffers, US census statistics, etc

Setup for public PostGIS and Jupyter Notebooks

I set up on DigitalOcean so that ports and resizing would be more readily available.

The documents linked here are old. The current version of PostgreSQL is '10'

Installing PostgreSQL on Ubuntu: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-14-04

Installing and configuring PostGIS on Ubuntu: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postgis-on-ubuntu-14-04

Making PostgreSQL open to the web: https://bosnadev.com/2015/12/15/allow-remote-connections-postgresql-database-server/

DigitalOcean firewall: https://www.digitalocean.com/community/questions/opening-ports-on-my-server

License

Open source, MIT license

About

PostGIS tutorial with hosted read-only database and notebooks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published