Skip to content
Snippets Groups Projects
Duchateau Fabien's avatar
c8e02102

mongiris package

This package is an interface for querying IRIS stored as documents in MongoDB.

IRIS are French administrative areas (similar to neighbordhoods). The ~50,000 IRIS for France are stored in the GeoJSON format.

Pré-requis

  • Python, version >=3
  • MongoDB, version >=4, in which it is necessary to import the IRIS database (see Installation).

Installation

To install mongiris:

python3 -m pip install git+https://fduchate@gitlab.liris.cnrs.fr/fduchate/mongiris.git#egg=mongiris

Next, you need to load the IRIS data into MongoDB (using the mongorestore tool):

./mongorestore --archive=/path/to/dump-iris.bin

where /path/to/ indicates the path to the dump IRIS database (provided with the source package mongiris in mongiris/data/dump-iris.bin)

Crédits

Source de données : INSEE INSEE

Laboratoire LIRIS LIRIS

Laboratoire CMW CMW

Labex Intelligence des Mondes Urbains (IMU) IMU