Skip to main content

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


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.0.tar.gz (37.4 kB view details)

Uploaded Source

Built Distribution

pypn_ref_geo-1.5.0-py3-none-any.whl (49.6 kB view details)

Uploaded Python 3

File details

Details for the file pypn-ref-geo-1.5.0.tar.gz.

File metadata

  • Download URL: pypn-ref-geo-1.5.0.tar.gz
  • Upload date:
  • Size: 37.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pypn-ref-geo-1.5.0.tar.gz
Algorithm Hash digest
SHA256 adfbddaf4a1a9a6092c52b84111344399ce284ab715d0a91fa6702f931741cb3
MD5 fb15c81a1705c7872f7c30a68418d8cd
BLAKE2b-256 a2f3b12bcaa66f2c1c2abf023d24e84d234ca67e55fa23a05cc1029a55c38b01

See more details on using hashes here.

File details

Details for the file pypn_ref_geo-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: pypn_ref_geo-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 49.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pypn_ref_geo-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14cf3f4951fc0d8ae11f9f055df3a129d23aa7f2da424d90fc4d0e3bacce2bc5
MD5 abd9666a3a33472f615cada18509a481
BLAKE2b-256 0004b57a78517863fe700bf7e2fc6384121e38e1bd596ab84533b4675bb6cf7b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page