[OSM-dev] Fwd: Script to extract bbox from history planet

Martijn van Exel m at rtijn.org
Mon May 2 16:11:55 BST 2011


On Thu, Dec 16, 2010 at 9:22 AM, Frederik Ramm <frederik at remote.org> wrote:

> Hi,
>
>   I have made a small Perl script that allows you to extract a
> bounding box from the history planet file. It's very basic (no
> "completeWays"/"completeRelations" mode, i.e. trouble at the edges of
> your bbox) and dreadfully slow (about 10 hours to process the whole
> file) but it's a start. It doesn't use a lot of memory so should be
> runnable by anybody.
>
> If someone feels like (a) re-implementing this in C or (b) enhancing
> Osmosis to be able to deal with history files, that would of course be
> the "proper" way to do it. My solution is just a quick hack to extract
> an area of interest for further processing.
>
> I haven't tested it thoroughly but made some spot checks and it seems to
> work all right, including proper handling of object deletion (i.e.
> includes the last "visible=false" version if an object gets deleted).
>
> It's at applications/utils/osm-extract/history-excerpt.pl in our SVN.
>

 Hi Frederik and others,
Revisiting this old thread. I seem to remember this script was superseded /
made obsolete by something else, but can't find what / where.
Do I really need to unpack the full history planet to use this or can I use
bzcat?

Martijn

-- 
Martijn van Exel
http://about.me/mvexel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20110502/ed3bee00/attachment.html>


More information about the dev mailing list