[OSM-dev] XML xPath or trick to get way bounds

Fran├žois Lacombe fl.infosreseaux at gmail.com
Mon Apr 24 06:26:43 UTC 2017


Hi all,

With osm xml format (overpass, josm), is there any technique to get the
bounds of a given way ?

I want to get min lat/lng and max lat/lng without processing the whole
document (which can be pretty big)

This would be useful to list all nodes from my db contained into that
bounds prior to process ways.
I want to prevent numerous queries to check if each individual node exists
or not while importing ways, assuming that some nodes already exist and
some other don't.

The question can be extended to relations if possible

Thanks in advance for any hint

All the best
Francois
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20170424/c849d0d3/attachment.html>


More information about the dev mailing list