osmlint
osmlint copied to clipboard
[Validator] Conflict between tags: natural and leisure
var turf = require('turf');
module.exports = function(tileLayers, tile, writeData, done) {
var layer = tileLayers.osm.osm;
var osmlint = 'naturalvsleisure';
var result = [];
for (var i = 0; i < layer.features.length; i++) {
var val = layer.features[i];
if (val.properties.natural && val.properties.leisure) {
val.properties._osmlint = osmlint;
result.push(val);
}
}
if (result.length > 0) {
var fc = turf.featurecollection(result);
writeData(JSON.stringify(fc) + '\n');
}
done(null, null);
};


@Rub21