[PATCH] splitter now reads directly .osm.bz2 files

Hi, I've just created a patch, which enables splitter to read .bz2 compressed files directly without need for external decompressing. This eases live for me, as I generally get my osm data from geofabrik, which is bzip2 compressed. It uses the CBzip2InputStream class from org.apache.tools.bzip2.* If you apply only part a of the patch, then you will need a jar file with this class in your classpath. You can get it e.g. at http://www.kohsuke.org/bzip2/ If you apply part b additionally, then it contains all you need. But I absolutely don't know if the apache license, which is valid for the CBzip2InputStream class allows including in other projects. Therefore I have splitted the patch into two parts. Please comment, should this patch be commited to svn? Greetings, Johann

Hi Johann
I've just created a patch, which enables splitter to read .bz2 compressed files directly without need for external decompressing. This eases live for me, as I generally get my osm data from geofabrik, which is bzip2 compressed.
Thanks, I am applying the patch.
If you apply part b additionally, then it contains all you need. But I absolutely don't know if the apache license, which is valid for the CBzip2InputStream class allows including in other projects. Therefore I have splitted the patch into two parts.
The apache-2.0 and GPL3 licences are compatable, but apache-1.1 isn't. So I got newer files from the latest version of ant which are under v2 of the licence and added them instead. Regards, ..Steve

On Thu, Mar 26, 2009 at 1:29 PM, Johann Gail <johann.gail@gmx.de> wrote:
I've just created a patch, which enables splitter to read .bz2 compressed files directly without need for external decompressing.
Thanks for this patch. I tested it on a .bz2 file of Germany from geofabrik.de: it worked without problem. This will make my life easier, as I too use extracts from geofabrik. Cheers.
participants (3)
-
Clinton Gladstone
-
Johann Gail
-
Steve Ratcliffe