[talk-au] Accessing landcover/trees

Warin 61sundowner at gmail.com
Fri Feb 15 03:44:37 UTC 2019


On 15/02/19 14:29, Andrew Harvey wrote:
> You'll probably run into limits using the Overpass API to extract 
> large amounts of data.
>
> I'd recommend osmium as it's very fast. Here's an example using it to 
> filter data by tags 
> https://osmcode.org/osmium-tool/manual.html#filtering-by-tags
>
> So once you have an extract 
> http://download.openstreetmap.fr/extracts/ you'd run
>
> osmium tags-filter australia.osm.pbf wr/natural=wood wr/landuse=forest 
> wr/landcover=trees -o wooded-areas.osm.pbf
>
> "wr" means both ways and relations, which should pick up the one you 
> found mapped as a relation.

There are many of the larger tree areas tagged as relations, only way to 
put holes in them. Just added some 3 for the Grampians rather than have 
the entire national park tagged as trees.

>
> Then you can export to GeoJSON with osmium export 
> https://docs.osmcode.org/osmium/latest/osmium-export.html
>
> osmium export wooded-areas.osm.pbf -o wooded-areas.geojson
>
> PS. Big fan of your weather tweets on Twitter!
>
> On Fri, 15 Feb 2019, at 1:34 PM, Andrew Miskelly wrote:
>> Hi folks,
>>
>> I'm trying to get hold of polygons for areas in Australia which are 
>> "wooded" using Overpass but I don't seem to be able to get 
>> comprehensive data. Combinations of landcover, landuse, natural etc. 
>> queries only return a subset of actual wooded areas.
>>
>> The polygons are rendered at https://www.openstreetmap.org/ but when 
>> I attempt to query them nothing relevant comes back (see the screen 
>> shot at https://anero.id/shared/20190215021156_1.jpg).
>>
>> Does anyone know how to retrieve these generic wooded area polygons?
>>
>> Thanks and regards,
>> Andrew
>>
>> _________________________________________________
>> Talk-au mailing list
>> Talk-au at openstreetmap.org <mailto:Talk-au at openstreetmap.org>
>> https://lists.openstreetmap.org/listinfo/talk-au
>
>
>
> _______________________________________________
> Talk-au mailing list
> Talk-au at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk-au


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-au/attachments/20190215/7a87eae4/attachment.html>


More information about the Talk-au mailing list