Référentiel géographique
Project description
Référentiel géographique
Prérequis : vous devez installer l’extension PostGIS dans votre base de données.
Création et remplissage du référentiel géographique :
python3 -m venv venv
source venv/bin/activate
pip install -e .
pip install psycopg2 # for postgresql database
export SQLALCHEMY_DATABASE_URI="postgresql://user:password@localhost:5432database"
cd src/ref_geo/migrations
alembic -x local-srid=2154 upgrade ref_geo@head
alembic upgrade ref_geo_fr_municipalities@head # Insertion des communes françaises
alembic upgrade ref_geo_fr_departments@head # Insertion des départements français
alembic upgrade ref_geo_fr_regions@head # Insertion des régions françaises
alembic upgrade ref_geo_fr_regions_1970@head # Insertion des anciennes régions françaises
alembic upgrade ref_geo_inpn_grids_1@head # Insertion du maillage 1×1km de l’hexagone fourni par l’INPN
alembic upgrade ref_geo_inpn_grids_2@head # Insertion du maillage 2x2km de l’hexagone fourni par l’INPN
alembic upgrade ref_geo_inpn_grids_5@head # Insertion du maillage 5×5km de l’hexagone fourni par l’INPN
alembic upgrade ref_geo_inpn_grids_10@head # Insertion du maillage 10×10km de l’hexagone fourni par l’INPN
alembic upgrade ref_geo_inpn_grids_20@head # Insertion du maillage 20x20km de l’hexagone fourni par l’INPN
alembic upgrade ref_geo_inpn_grids_50@head # Insertion du maillage 50x50km de l’hexagone fourni par l’INPN
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pypn_ref_geo-1.5.4.tar.gz
(40.5 kB
view details)
Built Distribution
File details
Details for the file pypn_ref_geo-1.5.4.tar.gz
.
File metadata
- Download URL: pypn_ref_geo-1.5.4.tar.gz
- Upload date:
- Size: 40.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc0a37bf428f49816e36782820c2432ddf18ebfb3084458c54496ca9ff0fffd1 |
|
MD5 | a3dc782900633a566e797e4ec20da209 |
|
BLAKE2b-256 | 28c25b1b0de86332527082c9547e98925b43c8919b13d24a32ab0b9b468820d3 |
File details
Details for the file pypn_ref_geo-1.5.4-py3-none-any.whl
.
File metadata
- Download URL: pypn_ref_geo-1.5.4-py3-none-any.whl
- Upload date:
- Size: 55.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aeaf73dbba0bac870f089450c38eb11538cbf9fa75371d5d92ec521741d9fd5 |
|
MD5 | b4407d009ab632206e7df9836c1d4969 |
|
BLAKE2b-256 | dc9f09c62b6837d3cb36c3c589da38b72783a699c2daac663a0bf1091264ff8b |