When searching/selecting/filtering in JOSM (i.e. via ctrl+f
) you just enter closed
as a string. That will mark all closed ways (and only closed ways i.e. polygons). (BTW it is shown in JOSM hints in that window, with other useful examples for searching)
So if you type closed leisure=track
you would get exactly what it sounds like (only closed ways tagged with leisure=track
)
(You can also use those ctrl+f
expressions in filter window, if you prefer that).
most simply, enter just building
in that ctrl-f
window. that will select all nodes, ways and relations that are tagged with building=*
. Or, if you want just closed ways tagged as buildings (but no nodes nor relations), use filter string closed building
or closed building=*
I’m note sure I follow. Usually, power plants and power substations are either closed ways or nodes (points) with appropriate power=*
tags on them. If you “don’t want ways nor points” you won’t get much, if anything (well, you’ll get few relations, but without any coordinates).
Entering power=substation or power=plant
in that ctrl+f
window will select all nodes, ways and relations that are either power substations or power plants. If you enter (power=substation or power=plant) and type:relation
, that would select only those which are relations, if that is what you want.
Short tutorial: basically in OSM you have:
- nodes (dimensionless points with just coordinates)
- ways (collections which are made from two or more points, connected in specified direction). Those ways may be:
- open ways (i.e. just lines, e.g. highways)
- closed ways (i.e. polygons, like for example buildings)
- relations (collections of ways and/or nodes and/or other relations, which are somehow related in more complex ways. I’m guessing those are probably rarely used in your specific case)
All three (nodes, way, relations) can have 0 or more tags, which are key=value
expressions (like e.g. building=kiosk or power=substation), and which specify what that node/way/relation actually represents.
Those tags cannot exist on their own - they are always attached to some node, way, or relation.