[Tilesathome] lowoom Caption Layer question

80n 80n80n at gmail.com
Mon Mar 10 21:45:10 GMT 2008


On Mon, Mar 10, 2008 at 9:10 PM, Brent Easton <b.easton at exemail.com.au>
wrote:

>  Thanks 80n,
>
> That has fixed the problem.
>
> Another thing I found is that when generating the caption layer, we only
> need to download the nodes from osmxapi, not all of the ways, which makes it
> run orders of magnitude faster.
>

Yes, you only actually need:

/api/0.5/node[place=country|state|city|town]



>
> Regards,
> Brent.
>
> *********** REPLY SEPARATOR ***********
>
> On 10/03/2008 at 10:41 AM 80n wrote:
>
> 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
>
>
> ____________________________________________________________
> 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/1e8df30f/attachment.html>


More information about the Tilesathome mailing list