Hi, I am mapping the footpaths inside this university, I got an error saying that the building and the footpath, intersected and I needed to put one on top of the other, I chose to put the university building on top because the footpath is obviously not on top of the building, but now the building got added one underground level automatically, presumably because I added the footpath.
this is obviously not correct, I could simply remove the underground attribute, but I feel like I didn’t solve the root cause of the issue and apps might interpret the footpath incorrectly.
In the pictures above you can see two parts of the footpath, both in real life and in OSM, the arrow color corresponds to the same part of the footpath in each picture, as you can see the red part is like a sidewalk as in being mostly exposed from one side, while the other part (in green) is more enclosed like this picture: Imgur: The magic of the Internet
so I am not even sure if both of the footways should be marked the same way
It’s a little more complex than that. As noted in Data consumers section, the Wiki article on layer, “renderers typically give the layer tag the least weight of all considerations when determining how to draw features.”
For example, landuse areas, such landuse=residential, will rendered first, then buildings, then, say, power lines. No amount of fiddling with layer will have any effect. The wiki calls these “technical reasons” as if this approach is somehow optional…
layer is only used when determining how to render overlapping features of the same type (e.g. highways). Otherwise different tags are needed to provide information to renderers / data consumers, e.g. use location=underground to indicate that a building is underground. The renderer can then decide how to draw (or not) the building.
I can’t see your images, as Imgur is blocking access from the UK, but it sounds like you have a footway that runs inside a colonnade/arcade of a building.
Here the best tagging would be covered=X, as mentioned above, without layer tags (if both footway and building are on the ground). If ID complains about missing layer tags, ignore it!