How to Import GIS data (Shapefiles) to PostGIS, running in a docker container

preview_player
Показать описание
This is part 4 of the video series on Intro to Spatial Analysis with GeoDjango, Docker, Postgres and Nginx. This video is all about how to import GIS data (Shapefiles) to PostGIS running in a docker container.

A Shapefile is a simple, nontopological format for storing the geometric location and attribute information of geographic features. Geographic features in a shapefile can be represented by points, lines, or polygons (areas).

Docker shall be used to deliver our Geo-application in packages called containers through the use of Dockerfiles and docker-compose.

Postgres shall be used wih PostGIS, which is a spatial database extender for PostgreSQL object-relational database.

Our final aim is to build a GEO-enabled REST API from scratch with some admin boundary and hospital data from Rwanda and carrying out some basic spatial analysis.

Geodjango makes it as easy as possible to build GIS Web applications and harness the power of spatially enabled data.

Nginx shall be used as a reverse proxy/webserver to interface with our API server that will serve GEOJSON.

************************************************************************
Timestamps
************************************************************************
Intro: (0:00)
Create Django apps: (0:26)
Using GDAL to inspect Shapefiles: (2:22)
How to use GeoDjango LayerMapping utility: (10:38)
Auto Generate GeoDjango LayerMapping and models with ogrinspect: (18:30)

*************************************************************************

*************************************************************************

🎻 Where I get my background music and effects 🕺🏽

*************************************************************************

🎥 Social Media

*************************************************************************

👨🏽‍💻 Source Code 👩🏼‍💻

🔊 License:

🔻
"Juan Sánchez - Now The Silence" is under a Creative Commons (cc-by) license
🔺
Рекомендации по теме
Комментарии
Автор

What can I do if I want to add fields to my model that are not in the shapefile attributes and stiil do the LayerMapping?

manuelalejandrosalazargome
Автор

Hey, Thanks for all, I'm getting this error when I try to load from boundaries :" relation "boundaries_boundary" does not exist
LINE 1: INSERT INTO "boundaries_boundary" ("adm0_en", "adm0_pcode", ..."

insses