[OSM-dev] [OverpassAPI] Distinguish request matching features and referenced content ?
François Lacombe
fl.infosreseaux at gmail.com
Sun Sep 27 17:02:37 UTC 2015
Hi all,
I'm currently trying to import some features from OSM a in a DB by
using several Overpass queries.
As for loading any referenced content (nodes in ways, members in
relations), those requests contain "(._;>;);" statement.
I'm not able so far to distinguish the request matching content and
the referenced content since all is coming between <osm> markups.
My logic dealing with requests results is also trying to convert
referenced nodes and members the same way as the request matching
content since the logic doesn't know which is request matching or not.
Should I improve my logic or get a cool way to obtain the output below ?
In this example, only the way is matching request statements, nodes
are part of the way.
<osm>
<way id="xxxxx" ... >
<nd ref="yyyyy"/>
<nd ref="zzzzz"/>
</way>
<reference>
<node id="yyyyy"/>
<node id="zzzzz"/>
</reference>
</osm>
The processing logic would only deal with the way and ignore the nodes.
Many thanks in advance for any help, all the best,
François Lacombe
fl dot infosreseaux At gmail dot com
www.infos-reseaux.com
@InfosReseaux
More information about the dev
mailing list