[OSM-dev] Script to find tiles that need rebuilding
Martijn van Oosterhout
kleptog at gmail.com
Thu Dec 28 13:49:11 GMT 2006
Last night on irc #osm almien_l asked if someone wanted to write a
script that would monitor the nodes.rss feed and use that to generate
requests for tiles that need to be regenerated.
This I have done (see attachment).
It does:
- Reads the feed at http://www.openstreetmap.org/feeds/nodes.rss
- Determines which tiles have been affected
- Checks a cache to make sure the same tile isn't requested twice
within 48 hours
- Does a request of the form http;//somewhere/PleaseUpdate/?x=1234&y=3210
I'm not sure what almien_l intended to do with it, but he did say to
send it to the dev list. The intended application is to run it
regularly from a cron script.
Comments welcome,
Have a nice day,
--
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nodewatch.pl
Type: application/x-perl
Size: 2438 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20061228/dbded546/attachment.bin>
More information about the dev
mailing list