[OSM-dev] osm2pgsql, zoom range for -e option?
marqqs at gmx.eu
marqqs at gmx.eu
Tue Aug 9 18:53:42 BST 2011
OK, I fixed the bug. - If it really was a bug and not intended behaviour.
I'm still not sure...
My patch (I added just 2 lines):
diff -C 5 -p expire-tiles_old.c expire-tiles.c
*** expire-tiles_old.c 2011-05-21 15:13:49.000000000 +0200
--- expire-tiles.c 2011-08-09 19:41:07.000000000 +0200
*************** static void _output_and_destroy_tree(FIL
*** 139,148 ****
--- 139,151 ----
int sub_y = y << 1;
FILE * ofile;
if (! tree) return;
+ if(this_zoom>=min_zoom)
+ fprintf(outfile, "%i/%i/%i\n", this_zoom, x, y);
+
ofile = outfile;
if ((tree->complete[0][0]) && outfile) {
output_dirty_tile(outfile, sub_x + 0, sub_y + 0, this_zoom + 1, min_zoom);
ofile = NULL;
}
-------- Original-Nachricht --------
> Datum: Tue, 09 Aug 2011 11:48:23 +0200
> Von: marqqs at gmx.eu
> An: dev at openstreetmap.org
> Betreff: Re: [OSM-dev] osm2pgsql, zoom range for -e option?
> Maybe it's a bug in expire-tiles.c? I'm not sure.
>
> When I change
> -e 11-18
> to
> -e 11-15
> many tile paths (number triples) from zoom level 15 and below appear in
> the list.
>
> It seems as if the length of the "tiles expired" list would be limited to
> about 4 MB. Very confusing... at least for me. :-)
>
> Any help would be appreciated very much!
>
> Markus
>
>
> -------- Original-Nachricht --------
> > Datum: Tue, 09 Aug 2011 08:08:11 +0200
> > Von: marqqs at gmx.eu
> > An: Frederik Ramm <frederik at remote.org>, osm at stephans-server.de
> > CC: dev at openstreetmap.org
> > Betreff: [OSM-dev] osm2pgsql, zoom range for -e option?
>
> > Hi,
> >
> > last night I experimented with the -e option.
> >
> > Although this option had been set to "11-18" the dirty_tiles file
> > contained only three tile paths with zoom level 15, a lot of paths with
> level 16 to
> > 18 and not a single tile path with zoom level 14 or below.
> >
> > Does someone know the reason for this behaviour?
> >
> > I would have expected at least a few paths for zoom levels 11 to 14.
> >
> > My command:
> >
> > osm2pgsql -s -C 3000 -d gis -U gis --prefix planet -S default.style -e
> > 11-18 gis.osm
> >
> > Same happens when I use the -a option. osm2pgsql sources where
> downloaded
> > yesterday:
> > "osm2pgsql SVN version 0.80.0 (32bit id space)"
> >
> > Markus
> >
> > _______________________________________________
> > dev mailing list
> > dev at openstreetmap.org
> > http://lists.openstreetmap.org/listinfo/dev
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
More information about the dev
mailing list