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"
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.1.1.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

pypn_ref_geo-1.1.1-py3-none-any.whl (36.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypn-ref-geo-1.1.1.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pypn-ref-geo-1.1.1.tar.gz
Algorithm Hash digest
SHA256 b871fd8d245004cf70ad3ab59c06863fa51ed76312b37868dd9dcd5e57cbcc38
MD5 bdcd0e9731bc54af839a4bc16024b2ed
BLAKE2b-256 b1b3f240843f1ad6c05cded986c2dcaf8297915c7f28782522fbc438e6c554cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pypn_ref_geo-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 36.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pypn_ref_geo-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ea9eaf3d95534a73b92d437c64a992f99c0c9173a6840625d3040d75ed2ba13
MD5 e401593e6943a909eebfc992985028cf
BLAKE2b-256 1a16caa27d9744506d23b883b16fb8ced3abf04367d86c5069d743029f6ce1a9

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