Fix pedestrian area multipolygons (#63)

This commit is contained in:
Michael Barry
2022-01-27 06:14:37 -05:00
committed by GitHub
parent 57323485ce
commit 650f68455e
3 changed files with 40 additions and 5 deletions

View File

@@ -513,8 +513,9 @@ public class Transportation implements
public void process(Tables.OsmHighwayPolygon element, FeatureCollector features) {
String manMade = element.manMade();
if (isBridgeOrPier(manMade) ||
// ignore underground pedestrian areas
(element.isArea() && element.layer() >= 0)) {
// only allow closed ways where area=yes, and multipolygons
// and ignore underground pedestrian areas
(!element.source().canBeLine() && element.layer() >= 0)) {
String highwayClass = highwayClass(element.highway(), element.publicTransport(), null, element.manMade());
if (highwayClass != null) {
features.polygon(LAYER_NAME).setBufferPixels(BUFFER_SIZE)