Closed ivanbranco closed 1 year ago
Is the height - value on trees evaluated in streets.gl?
Is the height - value on trees evaluated in streets.gl?
Yes, it is supported for individual trees and tree rows.
A 953m tree compared to normal trees
Who actually maps trees and rows with (estimated) heights and diameters? I don't, never ever, not encountered a natural / monumental tree that warrants the effort. Species could tell a little, orchard olives are 5-6m at best. Those street side certainly are pruned, all branches chopped to at least 5m from ground. Pines in the city usually have only the crown and in fact the Riserva Naturale Pineta here shows old to very old, only crown. Just added levels to apartment blocks on Via del Santuario, 7 at left, 5 at right, the pines lining the streets are reaching the top of the 4th floor.
PS for the exercize added height 13 to the pine tree rows to see the effect,
Edit: Change after adding estim.heights and solar panels on left bottom church roof, mapped as areas, tagged with location=roof (would be nice if those rendered).
A 953m tree compared to normal trees
It's the mana tree from Secret of Mana! ;-)
Anyway, I compiled a small list of tags interesting for rendering in streets-gl from the information in the wiki in the hopes that this summary will be useful:
Your tree models are roughly 1:2, i.e. double as high as wide. So:
height
, if not set est_height
for heightdiameter_crown
for width (height ~= width * 2)circumference
of the trunk is set on a lot of trees, because it is easy to measure on foot (may even be a StreetComplete quest one day). diameter
also exists. diameter = circumference / PI. A very rough estimate would be diameter_crown
= diameter
* 30. Hence:
diameter
to estimate widthcircumference
to estimate widthnatural=orchard
and landuse=plant_nursery
+ plant=<various>
are always rather small and have mostly identical size.natural=tree_row
have very similar sizesnatural=woods
(and/or managed=no
)landuse=forest
, espially with produce
or operator
. natural=woods
with managed=yes
also possible leaf_type=needleleaved
or leaf_type=broadleaved
leaf_cycle
to havve deciduous trees not have leaves in winterleaf_cycle
to fall back to a best guess if leaf_type
is not specified(Over the top / blue sky:)
For certain (families of) trees with specific appearance that are often used as , I guess you need to look in any of genus
, species
, species:wikidata
, taxon
and even species:<language>
, genus:<language>
to find which tree is which with best coverage. Examples of trees with a special look and that are used often in cities from the top of my head:
However, I think such detection would warrant a separate library project that heavily makes use of wikidata data best written in a language that can compile to various targets (JS, native, ...), e.g. in Kotlin or Rust. Such a library project could then maybe also make predictions on the width, height, relation to trunk diameter etc.
I think that most tree height are integrated from opendata bases (for exemple in Paris: this tree comes probably from this database)
Another funny example nearby:
|
value |
---|---|
height | 60 |
leaf_type | broadleaved |
min_height | 57 |
natural | tree |
It has probably been tagged so to look fine in f4map. but it's probably a pretty rare case
I think location=roof+height=3
would be a better tagging and that it should give the same result.
About sekerob comment on solar panel, I think location=roof
should be used to put whatever (trees, pools, pitches,solarpanels?) on top of roofs (should it be a separate issue)?
Units of measurement seem to be ignored diameter=15 cm
https://www.openstreetmap.org/node/6788395443
https://streets.gl/#59.43304,24.75283,29.75,132.25,1319.15
Units of measurement seem to be ignored diameter=15 cm
Thank you for reporting this. I've added support for "cm" units, it's fine now.
Now:
Seems fixed, thanks!
I wanted to take a look of how Streets GL rendered the Gundam (F4 for comparison here):![image](https://user-images.githubusercontent.com/94002623/236276883-cca2c01c-e135-4ec7-a477-33194cfad4b5.png)
But trees cover it:![image](https://user-images.githubusercontent.com/94002623/236277012-942c31c9-7391-4cc7-ba41-c29d6208f5cf.png)
Based on aerial imagery F4 looks more similar to reality (Bing imagery):
maybe trees should be smaller by default? In my city also they look too bulky
p.s. have you considered enabling "Discussions" (e.g. https://github.com/streetcomplete/StreetComplete/discussions/) so we can discuss things there are not proper bugs?