Handle GeometryCollection in nogo areas upload

This commit is contained in:
Gautier Pelloux-Prayer 2019-08-07 10:39:36 +02:00
parent edd014a830
commit 5a03b43099

View file

@ -463,7 +463,7 @@
geoJSONPromise.then(function(response) {
// Iterate on features in order to discard features without geometry
var cleanedGeoJSONFeatures = [];
turf.featureEach(response, function(feature) {
turf.flattenEach(response, function(feature) {
if (turf.getGeom(feature)) {
var maybeBufferedFeature = feature;
// Eventually buffer GeoJSON