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
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.7.tar.gz
(44.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.5.7.tar.gz.
File metadata
- Download URL: pypn_ref_geo-1.5.7.tar.gz
- Upload date:
- Size: 44.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e2a2e5f4c77e0f7d292efc10720c8d94fc8e27b7acf120396da8e4ab2220442
|
|
| MD5 |
a93c67905371cad32ad3d9502a071410
|
|
| BLAKE2b-256 |
9d705b2837168ae4003e747acef8cfb53ff6edc8b168ae07887d2a137b4c5028
|
File details
Details for the file pypn_ref_geo-1.5.7-py3-none-any.whl.
File metadata
- Download URL: pypn_ref_geo-1.5.7-py3-none-any.whl
- Upload date:
- Size: 61.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2afbebed679f84252a3a56a91ccdb1e30907e9395b2144bb669da1a0a52d2a64
|
|
| MD5 |
460cbb734ab8a5ba30c145c96db292c4
|
|
| BLAKE2b-256 |
7d2fe36a99262ece1772d17ab1067dbab3a73169ec8da52b1612cb909a26a8c7
|