Files
nairobi/app/models
CoslaJohn 5dbe2cbf24 Support FeatureCollection and MultiPolygon in geozones
We're reworking the format validation to correctly interpret feature
collection, feature, and geometry, according to RFC 7946 [1].

Since Leaflet interprets GeoJSON format, we're rendering the GeoJSON as
a layer instead of as a set of points. For that, we're normalizing the
GeoJSON to make sure it contains either a Feature or a
FeatureCollection. We're also adding the Leaflet images to the assets
path so the markers used for point geometries are rendered correctly.

Note we no longer allow a GeoJSON containing a geometry but not a
defined type. Since there might be invalid GeoJSON in existing Consul
Democracy databases, we're normalizing these existing geometry objects
to be part of a feature object.

We're also wrapping the outline points in a FeatureCollection object
because most of the large GIS systems eg ArcGIS, QGIS export geojson as
a complete FeatureCollection.

[1] https://datatracker.ietf.org/doc/html/rfc7946

Co-authored-by: Javi Martín <javim@elretirao.net>
2024-12-23 17:35:33 +01:00
..
2021-08-16 16:31:04 +02:00
2021-12-30 15:50:02 +01:00
2023-11-22 14:44:24 +01:00
2021-04-13 13:52:18 +02:00
2019-10-23 14:39:31 +02:00
2024-04-02 16:31:10 +02:00
2024-07-22 18:35:35 +02:00
2020-12-02 12:13:02 +01:00
2021-08-16 16:31:04 +02:00
2021-08-16 16:31:04 +02:00
2019-10-25 19:29:12 +02:00
2024-07-22 18:35:35 +02:00
2024-05-09 14:28:32 +02:00
2021-01-12 14:50:37 +01:00