This script will dowload and convert Insee's datafile concerning IRIS zones in France and create a single json.

  • Usage

After npm install to get the dependencies, use make download to automatically save the files on your computer. Then launch the conversion using make convert.

  • Format

This will create a single geojson file with the following structure:

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "DEPCOM": "97701",
        "NOM_COM": "SAINT-BARTHELEMY",
        "IRIS": "0102",
        "DCOMIRIS": "977010102",
        "NOM_IRIS": "CENTRE",
        "TYP_IRIS": "H",
        "ORIGINE": "2"
      },
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              1.637095937960687,
              7.610503016150719
            ],
            ...
          ]
        ]
      }
    },
    ...
  ]
}

Then you can use it like this in node, if you like to list all iris ids.

var data = require("./data/iris.json");
data.features.forEach(function(iris){
    console.log(iris.properties.IRIS)
})

Discusiones

Discusión entre la organización y la comunidad sobre este conjunto de datos.