NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hey, i want to calculate the area of trees in a city (Zürich, Switzerland), but when i do this (Python or QGIS) the result is 0. When you take a look on the map, there are many trees found with "natural=tree". How does the calculation of Nodes work? And what is the area of the tree that is calculated - only the trunk? And maybe it's just a really small number that the output is 0? Thanks for your help.

asked 30 May '22, 16:02

milo22948392's gravatar image

milo22948392
11335
accept rate: 0%


Nodes are points, so have no area.

For trees the wiki mentions optional tags of circumference, diameter, and diameter_crown which you could use to calculate an approximate area.

Overpass suggests these are little used in Zurich (diameter_crown is on one tree note and three tree row ways for example).

There might also be larger areas tagged with landuse=forest or natural=wood.

permanent link

answered 30 May '22, 17:18

EdLoach's gravatar image

EdLoach ♦
19.5k16156280
accept rate: 22%

3

Perhaps you could count the trees and multiple by an average circumference, add to the areas of separately mapped wood and forest, abd then try and see if there's any overlap between the two (individual trees mapped in an area of wood or forest)?

(30 May '22, 17:31) SomeoneElse ♦
4

For completeness, in addition to the nodes and areas already mentioned, there is also a line: natural=tree_row. I don't know about Zürich but in my city this is used quite a lot on tree-lined avenues.

(30 May '22, 17:43) alan_gr

Thank you very much!

@SomeoneElse: is there any technique to check if there's an overlap or do i just check some samples in the map?

(31 May '22, 09:15) milo22948392

Sampling might be the easiest way, because I suspect that most single trees won't be in areas mapped as woodland, but it might be possible to do something with Overpass turbo (perhaps see https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_API_by_Example - there are some "X within Y" examples there) or using a geographically aware database (an example of this sort of question is https://gis.stackexchange.com/questions/290072/locating-geometries-within-a-polygon-area - have a look at that and links from there).

(31 May '22, 11:52) SomeoneElse ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×92

question asked: 30 May '22, 16:02

question was seen: 1,241 times

last updated: 31 May '22, 11:52

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum