[ka-Map-users] Precache problem
randy_page at yahoo.com
Wed Nov 16 10:50:47 EST 2005
I have been routinely clearing my browser cache while chasing this problem,
but it hasn't helped.
When comparing the directory structure created on the fly and by precache, I
get the exact same structure. For example:
The only difference is the png files from precache are blank (appear to have
no layers turned on.)
To simplify things, I am using a mapfile with only one layer, which I have
included at the end of this email.
So far I am totally baffled.
<Below: call to tile.php from precache.php>
Y + $j*$mapHeight)."&l=".($metaMinX +
SIZE 600 600
EXTENT -85.0 33.43 -74.8 36.93
IMAGECOLOR 255 255 255
CONNECTION "user=Administrator dbname=tiger host=maps1"
DATA "the_geom from states"
NAME "US States"
COLOR 255 255 185
OUTLINECOLOR 128 128 128
# Map File
From: ka-map-users-bounces at lists.maptools.org
[mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of Jan Hartmann
Sent: Tuesday, November 15, 2005 8:39 AM
Cc: ka-map-users at lists.maptools.org
Subject: Re: [ka-Map-users] Precache problem
Try clearing your browser cache before switching from auto-generated to
pre-generated tiles. Also, check the location where tiles are generated
on the fly and check if these tiles are overwritten by precache.
Randy Page wrote:
> Hi Folks,
> I am using the current CSV version of Ka-Map, and am having a strange
> problem with precache.php (am using the precache.php from 0.1.1) If I
> attempt to pre-generate the tiles, precache goes through and creates the
> directories and files, but each of the image files are blank (actually,
> they are the background color set in the mapfile.) So, it seems
> precache is not turning on any layers. However, if I simply hit the
> web page, it generates the tiles on the fly properly (with layers turned
> on.) I found a post which said to make the following changes, which I
> did with no improvement:
> line 24: the path to "tile.php" has to be local
> line 42: the redefinition of $ascales must be removed
> line 74: the call to "tile.php" needs two more parameters:
> Note that my mapfile has no groups, only a bunch of layers, all of which
> are turned on by default. Any ideas as to where I am going wrong?
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
ka-Map-users mailing list
ka-Map-users at lists.maptools.org
More information about the ka-Map-users