[OSM-dev] [OverpassAPI] Distinguish request matching features and referenced content ?
François Lacombe <fl.infosreseaux <at> gmail.com>
2015-09-27 17:02:37 GMT
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.
<way id="xxxxx" ... >
The processing logic would only deal with the way and ignore the nodes.
Many thanks in advance for any help, all the best,
fl dot infosreseaux At gmail dot com
dev mailing list
dev <at> openstreetmap.org