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

Hello! What I would like to do is to write a script that would be able to tell me how many trees border each road in a small area. I'm using overpass-turbo, and I managed to get a list of roads with trees bordering them, with this script. However, I'm unable to count the trees. I then tried using this script, but all it does is count the number of roads with trees bordering them and not the number of trees bordering each road. Please let me know if you have any idea how I could do that. Thanks!

asked 19 Nov '22, 16:13

AloysP's gravatar image

AloysP
11112
accept rate: 0%


Hi AloysP, It depends on the accuraty of the mapper, if he chooses for natural=tree_line it is not possible since there is no accurate data. If the trees are tagged natural=tree you should be able to define and select the area of the way with the surrounding natural=trees in a certain area. Due to these variable values I dont expect to find a solution than counting them yourself.

permanent link

answered 19 Nov '22, 22:58

Hendrikklaas's gravatar image

Hendrikklaas
9.3k207238387
accept rate: 5%

Okay, thank you for your answer, I'll try another way

permanent link

answered 25 Nov '22, 12:24

AloysP's gravatar image

AloysP
11112
accept rate: 0%

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:

×228
×8
×3
×2

question asked: 19 Nov '22, 16:13

question was seen: 1,313 times

last updated: 25 Nov '22, 12:24

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