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.4.0.tar.gz
(34.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypn-ref-geo-1.4.0.tar.gz.
File metadata
- Download URL: pypn-ref-geo-1.4.0.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f343ebf4d605d7ca6aa562ad8a10b1fd09b1d710e0a2c35870ea30420e799331
|
|
| MD5 |
7f13d82439858e6319fb74d456ad8e06
|
|
| BLAKE2b-256 |
d4b09f9930c057d204f7e3b9f49b523c2ef8e3d2c7034aaac486cbc07990d1ed
|
File details
Details for the file pypn_ref_geo-1.4.0-py3-none-any.whl.
File metadata
- Download URL: pypn_ref_geo-1.4.0-py3-none-any.whl
- Upload date:
- Size: 45.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd85e231c5d6795bc1f0c7eac97026f89a4ee1f2ca6b65e80610a2b239e3fa12
|
|
| MD5 |
45e8647fdae7824fd403ce1e6cf32677
|
|
| BLAKE2b-256 |
45f00bc1d8ed8cae999f8ae356079ee3ca4d9407925fee7a9194714c35641cf9
|