OpenStreetMap logo OpenStreetMap

Mapping trees in OpenStreetMap and visualizing them in three ways

Posted by Raquel Dezidério Souto on 27 March 2025 in English. Last updated on 1 April 2025.

Ler em Português

MapComplete, Panoramax, overpass turbo and uMap: what can you do with these programs when mapping trees?


But first, a suitable question: how important is it to map trees?

In addition to the urban issue, in which it is often assessed whether natural elements and urban equipment are preserved, whether they are adequate or well distributed in a given area, the greatest motivation for mapping trees is to monitor vegetation cover, since these individuals are ecologically relevant. Combined with an educational activity, it also helps to raise awareness of their importance among students.

Trees provide various ecosystem services (or environmental services), such as providing shelter and food for different species, cooling the ambient air, removing atmospheric CO2, producing biomass, preventing soil erosion, reducing noise pollution et al.


Mapping with MapComplete

mapcomplete_image

MapComplete is an easy-to-use Web application to edit OpenStreetMap that allows you to map features related to different themes, one of which is exactly the tree mapping. The program automatically sends the data to OpenStreetMap, as long as you are logged in with your OSM user account. Link to MapComplete tree theme

The interface also offers some useful features, such as the possibility of registering a photograph locally (at street level) and uploading it to the Panoramax server, gaining a unique key that can be referenced in other software (such as uMap, below in this text). It is also possible to view the mapped item directly on the website https://osm.org.

In addition, various attributes can be specified. The program also allows you to create customized theme schemas. In the MapComplete default scheme, we highlight:

A) the leaf type:

  • tag leaf_type=broadleaved » refers to angiosperms (species that produce flowers and have broad leaves), e.g. Beach Almond - Terminalia catappa, Q271179.

  • tag leaf_type=needleleaved » refers to gymnosperms (species that do not produce flowers and have needle-shaped leaves), e.g. Pinus - Pinus silvestres, Q133128.

B) the species’ code on the Wikidata (easy search by name):

  • tag species:wikidata=* , e.g. coconut palm - Cocos nucifera, Q13187.

C) the circunference - in meters, to be measured at 1.3 m from the ground (standard value for this measurement):

  • tag circumference=*

D) the height - in meters:

  • tag height=*

E) the location of the individual - whether near a highway, whether in an urban area or not, etc:

  • tag denotation=*

Viewing on Panoramax

image_panoramax

Link to panoramax.xyz

Once the individuals (each tree) have been mapped, the photographs are stored forever for all users (unless someone deletes them or the project is ended). It is important for recording the health of trees or their age, all characteristics that can be easily observed in it. In addition, it makes it possible to observe the distribution of trees near the highways.


Viewing on overpass turbo

overpass turbo image

Link to overpass turbo

Once the points have been mapped, the attributes included, and the photographs recorded, it is still possible to create schemes for visualization in the turbo overpass, the simplest of which is shown in the code below, which colors trees with different types of leaves (wide or thin, as mentioned above) with specific, custom codes.

node
  [natural=tree]
  ({{bbox}});
out;

{{style: /* added by auto-styler */
*[leaf_type=broadleaved]
{ color: #3E600B; fill-color:#3E600B; }
*[leaf_type=needleleaved]
{ color: #97E71F; fill-color:#97E71F; }
}}

It is also possible to export these results and/or query these features with the same color scheme in other areas, as the query is automatic, according to the enclosing rectangle that appears on the screen (or bounding box).


Viewing on uMap

uMap_image

Link to uMap (some features were modified to illustrate this article).

The uMap is a French project which provides a Web mapping platform which allows Web maps to be created very quickly and, currently, with dynamic layers which are generated as the coordinates change in the browser address. In this way, mapped trees can be viewed in any region of the world and with color schemes, labels and click behavior, customized according to the project.

For the example presented here, overpass queries were used according to leaf type (leaf_type), in order to distinguish trees with broad leaves from those with needle-shaped leaves. This is done very simply directly from the uMap panel, in edit mode, in the import menu.

uMap_image

To show the photo on the feature label, you need to choose the “OpenStreetMap” mode in “Interaction options” » “Pop-up content style” in the uMap layer config panel. Or program the contents of the label according to the project instructions - https://github.com/umap-project/umap.


Green Open Data Day 2025

post_evento

March 31, 2025

Information:

https://ivides.org/green-open-data-day


That’s all for today! Hope to see you mapping trees! Send me the pic.


This content was proudly developed entirely with free software ;)

Translated to English with DeepL.com (free version). Reviewed by human.


IVIDES_logo

Location: Recreio dos Bandeirantes, Rio de Janeiro, Região Geográfica Imediata do Rio de Janeiro, Região Metropolitana do Rio de Janeiro, Região Geográfica Intermediária do Rio de Janeiro, Rio de Janeiro, Southeast Region, Brazil

Discussion

Comment from se_bras on 28 March 2025 at 03:18

Amazing I would love a workshop of this topic Raquel. Let me know if you are intereted so we can plan it for the Youthmapper chapters

Comment from mycota on 28 March 2025 at 14:40

These are great ideas for enhancing tree mapping. I just have one little correction: Casuarina is an angiosperm with “true” leaves that appear needle-like. A better example would be a pine tree.

https://en.wikipedia.org/wiki/Casuarina_equisetifolia

Comment from Raquel Dezidério Souto on 28 March 2025 at 15:42

@se_bras, we could pehaps do it in the SotM Latam 2025, but it would be hybrid for me because I can not participate presentially. But it could be with Paul Dassori too because he knows a lot more than I… Really, he is a kind of inspiration for me (as the other tree mapping people from Latin America).

Comment from Raquel Dezidério Souto on 28 March 2025 at 15:49

@mycota, really, it is an angiosperm, thank you for your correction.. It is a trap for me, because the leaves are in the shape of needles and I did it very quickly. I’m not so good at terrestrial botany also; as an oceanographer, I know more about algae… Because of you, I will check before the taxonomic information of individuals. For Brazil, the Pl@ntNet (plantnet.org) database has zero records, so, we can not identify with the photo and its AI in the field mapping.

Comment from Raquel Dezidério Souto on 28 March 2025 at 16:00

Thank you both for your support. Hopefully, I will be with my colleagues biologists in our field mapping ;)

Comment from Raquel Dezidério Souto on 28 March 2025 at 16:08

@mycota, fixed with JOSM, using the filter natural=tree, because there are only these two species in this location. And they are not native, portugueses (and their descendents) brought them. The original is just restinga vegetation.

Comment from SK53 on 30 March 2025 at 11:18

Good to see fellow tree mapping enthusiasts. The fact that the needleleaved/broadleaved dichotomy is not perfectly aligned with Gymnosperms/Angiosperms always irks me slightly. I think the idea is to make tagging easy for someone with no botanical knowledge : the leaves of Ginkgo are not needle leaved and this is s common street tree in Europe & North America.

It might be worth looking at other apps with machine learning to assist identification: iNaturalist is OK for most of South America, and observation.org, possibly too.

One last plea (and I know MapComplete might not do it): add not just wikidata, but wikipedia tags. The latter are much more useful for other mappers.

Good hunting!

Comment from Raquel Dezidério Souto on 1 April 2025 at 23:02

SK53, thank you a lot for your updates. The idea is to improve these nodes with more attributes, including Wikipedia link. Correcting what I wrote earlier, there are many photographs on Pl@antNet, but we had trouble identifying them with MapComplete’s AI. Do you know of any applications that use the iNaturalist database?

Comment from Raquel Dezidério Souto on 1 April 2025 at 23:08

Thank you, dpschep , gorgeous :)

Comment from pedro_tharg on 2 May 2025 at 14:50

I am glad that someone else has considered my suggestion to use the needleaved value for gymnosperms and broadleaved for angiosperms. I proposed this last year to facilitate vegetation labeling and to correspond with the Physiognomic and Ecological System used in Brazil by the IBGE. There is more information about this in my journal entry.

Log in to leave a comment