-
Notifications
You must be signed in to change notification settings - Fork 2
SQL and Databases
Spatial databases can be a valuable tool when working with big (geospatial) data. Tasks that may be impossible using R or Python due to memory constraints may be rapidly performed using a spatial database.
PostgreSQL (or just postgres) is a powerful, open source object-relational database system.
PostGIS is a spatial database extender for PostgreSQL object-relational database. It adds support for geographic objects allowing location queries to be run in SQL.
It is possible to set up a spatial database with a Conda virtual environment:
`
conda create --name myenv
conda activate myenv
conda install -y -c conda-forge postgresql conda install -c conda-forge postgis
initdb -D mylocal_db
pg_ctl -D mylocal_db -l logfile start
createdb myinner_db
psql -d $DB -c "CREATE EXTENSION postgis;"
`
https://www.infoworld.com/article/3219795/what-is-sql-the-first-language-of-data-analysis.html