[OSM-dev] extract polygons from .osc

Steven M. Ottens steven at minst.net
Fri Apr 15 17:08:05 BST 2011


  Hi all,

Is there a way to extract polygons or bounding boxes with the areas that 
are changed from an .osc file? I noticed that for any changeset [1] the 
'Changeset XML' [2] has a bounding box (but no changes) and the 
'osmChange XML' [3] doesn't have a boundingbox, but does have the changes.
I've got a tileserver with a osm2pgsql database which gets nicely 
updated. Now I want to refresh those tiles from which the data is/might 
have changed. I'm using MapProxy as tileserver and it allows for 
polygons and bounding boxes as input for a reseed. So I figured if I can 
extract the changed areas from the .osc file I can automatically reseed 
those areas with a simple script.

Regards,
STeven

[1] http://www.openstreetmap.org/browse/changeset/6288955
[2] http://www.openstreetmap.org/api/0.6/changeset/6288955 
<view-source:http://www.openstreetmap.org/api/0.6/changeset/6288955>
[3] http://www.openstreetmap.org/api/0.6/changeset/6288955/download 
<view-source:http://www.openstreetmap.org/api/0.6/changeset/6288955/download> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20110415/6e69b45e/attachment.html>


More information about the dev mailing list