hotosm / osm-analytics

OSM Analytics lets you interactively analyze how specific OpenStreetMap features are mapped in a specific region.
https://www.osm-analytics.org
BSD 3-Clause "New" or "Revised" License
103 stars 31 forks source link

buildings highlighted are only ways, not multipolygon relations #34

Open MarcoMinghini opened 8 years ago

MarcoMinghini commented 8 years ago

Buildings found on the map are just the ways having building=_, while _relations* having building=* and type=multipolygon (typically buildings having an inner courtyard) are not shown (example: http://www.openstreetmap.org/relation/1120279)

MarcoMinghini commented 8 years ago

Sorry, I've just read this in the README. However I think this is an important feature to add so I hope to see it in the future. Thanks!

tyrasd commented 8 years ago

yeah, it's one of the current limitations. It would be possible to add without almost any effort to osm-analytics, but requires having the multipolygon geometries is the osm-qa-tiles. And from what I can see, it should be possible to include them there as the producing code seems to already support it. On the other hand I'm not 100% sure if this is going to land in osm-qa-tiles anytime soon… //cc @aaronlidman

aaronlidman commented 8 years ago

We're looking into adding multipolygons, which would support most buildings, into the underlying osm-qa-tiles. While already technically possible, it greatly increases processing time and output size, so we're looking into other ways of doing it.

Here are our initial results:

command minjur time geojson size tippecanoe time mbtiles size total time
minjur 1h14m 210 GB 2h22m 26 GB (25 gzip) 3h36m
minjur-mp 2h34m 329 GB 3h57m 64 GB (57 gzip) 6h31m