[OSM-dev] PBF parsing frontend for osm2pgsql, tester wanted
Jon Burgess
jburgess777 at gmail.com
Mon Nov 1 23:07:57 GMT 2010
On Mon, 2010-11-01 at 22:43 +0000, Jon Burgess wrote:
> On Mon, 2010-11-01 at 00:02 +0100, Hartmut Holzgraefe wrote:
> > So far the status is "works for me" only so i'd like to get some
> > testing feedback ...
>
> Something is broken for me with the PBF reading. When I read in the file
> the "Node stats: total(263273), max(0)" looks wrong and the line and
> polygon tables have no entries:
>
> $ ./osm2pgsql -r pbf --prefix pbf --style=default.style /store/planet/cambridgeshire.osm.pbf
> osm2pgsql SVN version 0.70.3
This looks like it fixes the problem:
$ diff -uw parse-pbf.c~ parse-pbf.c
--- parse-pbf.c~ 2010-10-31 20:47:32.000000000 +0000
+++ parse-pbf.c 2010-11-01 23:05:23.000000000 +0000
@@ -306,6 +306,7 @@
DenseNodes *dense = group->dense;
for (unsigned node_id = 0; node_id < dense->n_id; node_id++) {
+ deltaid += dense->id[node_id];
deltalat += dense->lat[node_id];
deltalon += dense->lon[node_id];
Jon
More information about the dev
mailing list