Référentiel géographique
Project description
Référentiel géographique
Prérequis : vous devez installer l’extension postgis sur votre base de donnée.
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:5432/database"
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_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
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.3.0.tar.gz
(32.8 kB
view hashes)
Built Distribution
Close
Hashes for pypn_ref_geo-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78984f7b8d5a86e50120f7fb60e45b18d4b66c37a903705834e0bae1091a6387 |
|
MD5 | 7cc2218b6d74532b8529135f7f51b89d |
|
BLAKE2b-256 | 478b7d4ebcc1ba62d7f73e9f52878f05f721af0ff5a01431edc383214b309074 |