hackoregon / transportation-system-backend

2018 repo for the transportation api backend
MIT License
8 stars 2 forks source link

Remove PostGIS and drop back to PostgreSQL 9.6 for the database image #42

Closed znmeb closed 6 years ago

znmeb commented 6 years ago

Currently DevOps is planning on deploying PostgreSQL 9.6 on Amazon Linux 2, which does not yet support PostGIS. Since we aren't currently using the GIS queries, we should remove PostGIS from the database image and drop back to PostgreSQL 9.6 so we match what will be deployed.

znmeb commented 6 years ago

I'm collecting research on this - here's a few links I've found so far:

One approach would be to switch from GeoDjango to regular Django for serving the API and use a straight PostgreSQL 9.6 database, matching the AWS server. We would then need to do any GIS calculations in regular Python. There are a number of libraries for this - I'll post what I've found as soon as I dig up the reference books I have.

znmeb commented 6 years ago

Here are the two books I recommend:

Personally, I think PyQGIS is the way to go because you have maps as standard equipment and can connect to GIS-enabled databases.

bhgrant8 commented 6 years ago

closing, opening ticket to update to examplar