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+psycopg2://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
Metadata
Release files for pypn-ref-geo 1.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pypn_ref_geo-1.6.0.tar.gz | 42.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pypn_ref_geo-1.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 100.3 kB
Release files / pypn_ref_geo-1.6.0.tar.gz
| Download URL | pypn_ref_geo-1.6.0.tar.gz |
|---|---|
| Size | 42.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc6f43269f0381fdde6d056c6c6ab707a9dfa1fd9e62a31f8328fc9f2ee933e7
|
|
BLAKE2b-256 checksum How to use checksums |
32f0999a31c4b12b0959cd9bd0c6f40a81d0df384a73e2d60c460557326be97a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pypn_ref_geo-1.6.0-py3-none-any.whl
| Download URL | pypn_ref_geo-1.6.0-py3-none-any.whl |
|---|---|
| Size | 58.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dafab900ec5d69a22f5a719f0f06041477c7f63eebafa7265f6b22f252415d88
|
|
BLAKE2b-256 checksum How to use checksums |
3072437a00cb9d7783e6304480a05d98d7da7c5e7b674f20d6871ed74b75ddca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|