This PR enables the atlas to take into account SINP rules for sensitivity.
Several changes had to be made to be able to display different types of geometries. The sql requests and backend function for the ficheCommune had also to be changed to aggregate observations from mesh cells or polygons that intersect the municipality territory.
The goal is to :
get the deteriorated geometry (1km², 10km² mesh cell, the departement or the municipality) from GeoNature synthese table with a diffusion level. So that it is not deteriorated twice (in the following materialized views)
provide it to the vm_observations and the vm_observations_mailles materialized views
regroup the different types of geometries into leaflet's feature layers to be able to filter them
The AFFICHAGE_MAILLE=True and False are supported but the point aggregation does not work yet.
This PR enables the atlas to take into account SINP rules for sensitivity. Several changes had to be made to be able to display different types of geometries. The sql requests and backend function for the ficheCommune had also to be changed to aggregate observations from mesh cells or polygons that intersect the municipality territory.
The goal is to :
The AFFICHAGE_MAILLE=True and False are supported but the point aggregation does not work yet.
Closes #117