osmtogeojson icon indicating copy to clipboard operation
osmtogeojson copied to clipboard

List way membership of points

Open PanierAvide opened this issue 10 years ago • 4 comments

Hello, I think it could be interesting to keep track of the nodes identifiers in OSM way-based features, for example by adding an array of nodes ID in feature properties. This would allow some advanced processing (like finding a door direction along a wall). Do you think it can be implemented ?

PanierAvide avatar Jul 15 '15 13:07 PanierAvide

Hmm. Wouldn't it be better to perform this kind of analysis on the OSM data before converting it to geojson? Then, you could simply have separate information like "door with id x belongs to building with id y" alongside the geojson geometries…

tyrasd avatar Jul 15 '15 14:07 tyrasd

Well, let's consider it reversed: if you consider that a node may have the list of ways it belongs to, the same way that a feature knows to which relations it belongs, would it be more interesting to implement ? The goal is to avoid two-time parsing for performance reasons.

PanierAvide avatar Jul 15 '15 15:07 PanierAvide

Ok, that does indeed sound like a useful information to have!

tyrasd avatar Jul 16 '15 07:07 tyrasd

Nice, thank you for this great library and your openness to new functionalities ;)

PanierAvide avatar Jul 16 '15 08:07 PanierAvide