-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deploy: Migrate GADM geometry data to PostGIS-enabled PostgreSQL DB.
- Switch Docker base image from postgres to postgis for spatial support. - Refactor init-regions-table.py script to use OGR for reading GeoPackage and populating PostGIS geometries. - Bump GDAL version in requirements.txt for compatibility. - Update Makefile to conditionally build the DB only if 'regions' table doesn't exist. This commit enables the migration of geometry data from the GADM GeoPackage file to a PostGIS-enabled PostgreSQL database. It sets the stage for future spatial operations, including aggregating region geometries. Signed-off-by: Nikolay Martyanov <ohmspectator@gmail.com>
- Loading branch information
1 parent
494aec9
commit 9e7927a
Showing
4 changed files
with
85 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM postgres:16.0 | ||
FROM postgis/postgis:16-3.4 | ||
|
||
# Prepare apt-get | ||
RUN apt-get update | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
psycopg2-binary==2.9.9 | ||
python-dotenv==1.0.0 | ||
GDAL==3.6.2 | ||
GDAL==3.2.2 | ||
Fiona==1.9.4.post1 |