This enhancement makes it easier to create indicators with ratios per km2 or per inhabitant.
1 - inhabitants:
Calculation method:
The information updated annually is available by city on the url:
URL_POP = 'https://unpkg.com/@etalab/decoupage-administratif@4.0.0/data/communes.json'
pop = pd.read_json(URL_POP).loc[:,['code', 'population']]
To do :
add this information to the 'city' table (value at 0 if the value is not available)
generate the cumulative totals for each of the tables
update this information annually (if necessary),
2 - area:
Calculation method:
The surface can be deduced from the existing polygons (with the associated precision).
To do this, it is necessary to convert the polygons defined in the WGS84 (4326) reference system into the plane projection system associated with the location:
'metropole': 9794 (rgf93v2b)
antilles: 5490 (rgaf09)
guyana: 2972 (rgfg95)
mayotte: 4471 (rgm04)
To do :
for each table and each row calculate the area and add the attribute
This enhancement makes it easier to create indicators with ratios per km2 or per inhabitant.
1 - inhabitants:
2 - area:
Calculation method: The surface can be deduced from the existing polygons (with the associated precision). To do this, it is necessary to convert the polygons defined in the WGS84 (4326) reference system into the plane projection system associated with the location:
To do :
example:
Reference: