[OSM-dev] osm2pgsql, .o5m import interface
marqqs at gmx.eu
marqqs at gmx.eu
Sat Jul 2 20:58:38 BST 2011
Hi Jon,
no, reading .o5m.gz (resp. .o5c.gz) is not supported at present.
You usually don't do zlib compression with .o5m files, users will rather use lzop if processing speed is important, or 7zip if a minimal file size is required.
However, the .o5m file format is usually chosen because of its speed, and this advantage would get lost if you compressed the data. Therefore you may expect input files to be uncompressed (an uncompressed .o5m file has nearly the same size as a conventional .osm.bz2 file).
> My main concern would be whether the changes introduce
> new external dependencies.
Don't worry, there should be no additional dependencies.
> Can we see the code? Maybe attach it to a ticket in trac.
I just uploaded the necessary files to http://m.m.i24.cc/o5m_osm2pgsql_20110702.zip
parse-o5m.c (new)
parse-o5m.h (new)
osm2pgsql.c (a few minor changes)
Makefile.am (added parse-o5m.c and parse-o5m.h)
Please consider the source as experimental. The import of a small test region (100x100 km) worked fine, but there sill might be some bugs...
Markus
-------- Original-Nachricht --------
> Datum: Sat, 02 Jul 2011 14:30:12 +0100
> Von: Jon Burgess <jburgess777 at gmail.com>
> An: marqqs at gmx.eu
> CC: dev at openstreetmap.org
> Betreff: Re: [OSM-dev] osm2pgsql, .o5m import interface
> On Sat, 2011-07-02 at 15:01 +0200, marqqs at gmx.eu wrote:
> > Hi,
> >
> > yesterday I wrote an import interface for .o5m and .o5c files (
> http://wiki.openstreetmap.org/wiki/o5m ).
> > May I add the source file (parse-o5m.c) to the regular osm2pgsql
> sources?
>
> Can we see the code? Maybe attach it to a ticket in trac.
>
> I am more than happy to see new formats being supported by osm2pgsql
> provided they don't interfere too much with the existing code. My main
> concern would be whether the changes introduce new external
> dependencies. Ideally anything which adds a new dependency should be
> made a conditional compilation option and have auto-detection in the
> configure script.
>
> Please also remember to increase the version number.
>
> > Markus
> >
> > _______________________________________________
> > dev mailing list
> > dev at openstreetmap.org
> > http://lists.openstreetmap.org/listinfo/dev
>
>
More information about the dev
mailing list