[Tilesathome] lowoom Caption Layer question
80n
80n80n at gmail.com
Mon Mar 10 10:41:04 GMT 2008
A patch is needed somewhere in tilesgen.pl.
The following line is wrong:
elsif (not($SubImage->compare($EmptyLandImage) & GD_CMP_IMAGE)) #
libGD comparison returns true if images are different. (i.e. non-empty Land
tile) so return the opposite (false) if the tile doesn''t look like an empty
land tile
It should be:
elsif (not($Config{"Layer.$layer.Transparent"}) &
not($SubImage->compare($EmptyLandImage) & GD_CMP_IMAGE)) # libGD comparison
returns true if images are different. (i.e. non-empty Land tile) so return
the opposite (false) if the tile doesn''t look like an empty land tile
80n
On Mon, Mar 10, 2008 at 6:18 AM, Brent Easton <b.easton at exemail.com.au>
wrote:
> >Any tile, at any zoom (8-11) that does not have any part of a caption on
> >it, ends up as a blank tile after the lowzoom_composite layers the
> caption
> >over the captionless tile. I have checked that the caption layer is
> >correct and the captionless tiles look correct also.
>
> I've tracked down the problem, but I am not sure what I am doing wrong.
>
> When I ran the tilesgen.pl x y 8 with the new lowzoom configuration, tiles
> with no captions where created as 67 byte land tiles and uploaded.
>
> Now, when I run the lowzoom_composite.pl, theses tiles with no captions
> are downloading as 256x256 pixel off-white non-transparent tiles and are
> overlaying the captionless tiles. These tiles outght to be coming down as
> 256x256 transparent tiles, or not at all?
>
> Should the blank tiles have been updated in the first place?
>
> Thanks,
> Brent.
>
>
> ____________________________________________________________
> Brent Easton
> Analyst/Programmer
> University of Western Sydney
> Email: b.easton at uws.edu.au
>
>
> _______________________________________________
> Tilesathome mailing list
> Tilesathome at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/tilesathome
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tilesathome/attachments/20080310/d03f2fb7/attachment.html>
More information about the Tilesathome
mailing list