OpenStreetMap friends. Not being very technical, I’m struggling to use Overpass or turbo). I would like to download a global dataset of landuse=allotments (maybe in chunks) for a project idea. Can anyone help?

#osm

@stevenfeldman Mmh, not sure if overpass is the best tool as there seem to be >400k objects, https://taginfo.openstreetmap.org/tags/landuse=allotments

What about osmium?

```
osmium tags-filter switzerland-latest.osm.pbf \
w/r landuse=allotments \
-o allotments.osm.pbf
osmium export allotments.osm.pbf -o allotments.geojson
```

landuse=allotments | Tags | OpenStreetMap Taginfo

@stevenfeldman I tried it for Switzerland. Obviously, the downside is that you need to download the whole planet file.
What I need is a point for each allotment with the area and maybe the name
@stevenfeldman Continuing on the command-line interface path, this could be accomplished using ogr2ogr and an SQL expression. Area calculation would need a proper projection.
I think I’ll have to download in chunks and then process in QGIS
@stevenfeldman you're using tools that would take you more time. If you can live with at, ok, but `ogr2ogr` is a much faster solution (granted, once you learned how to use it).
Presumably I still need to download the planer file?
@stevenfeldman Postpass!
It's a global SQL database accessible over the web.
@amapanda could you help me out with the query to download landuse=allotments as geojson?
@stevenfeldman sure!
You want all the allotment areas, but as a point, and just their name?
Start here <https://overpass-turbo.eu/s/2qii> Is that the data you want? It's just a bbox query for now
overpass turbo

A web based data mining tool for OpenStreetMap which runs any kind of Overpass API query and shows the results on an interactive map.

overpass turbo

A web based data mining tool for OpenStreetMap which runs any kind of Overpass API query and shows the results on an interactive map.

@stevenfeldman god i hope all the dudes don't just click it and overload our servers. Let's hope the bots don't start scraping.
YOLO
@amapanda That's amazing, thanks so so much
@stevenfeldman
🕶️🙂 Don't thank me.
😎 Thank #Postpass!
But I couldn’t have worked out how to use postpass without you so big thanks to you and to postpass and to @geofabrik
@amapanda without any analysis it shows an interesting picture

@stevenfeldman The MapLibre heatmap documentation is a bit hard to understand and work with, but eh it's cool to have a link

https://maplibre.org/maplibre-style-spec/layers/#heatmap

Layers - MapLibre Style Spec

Documentation for the MapLibre Style Specification

Thanks

I am going in a different direction with this. I’ll share in a couple of days

@stevenfeldman you could download the planet file. Then do osmium to filter out for only that tag.
Then with this smaller pbf file, convert to geojson (again with osmium).

@stevenfeldman For this kind of task, I second downloading the OSM planet file and applying Osmium.

I usually then use the same osmium to get a GeoJSON-lines file and open it in QGIS or process it with scripts.

Thanks I’ll give that a try