<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:st1 =
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR><o:SmartTagType
name="Street"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="address"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="City"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="country-region"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="place"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>
st1\:*{behavior:url(#default#ieooui) }
</STYLE>
<![endif]-->
<STYLE>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=377451117-06062006><FONT face="Trebuchet MS"
size=2>Hey Chris-</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=377451117-06062006><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=377451117-06062006><FONT face="Trebuchet MS"
size=2>The 'scales' index was added to the array that defines your maps in
config.php some time ago. Check out the config.dist.php for an example of
how a map is defined.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=377451117-06062006><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=377451117-06062006><FONT face="Trebuchet MS"
size=2> $aszGMap = array
(<BR> 'title' => 'GMap
75',<BR> 'path' =>
'../../gmap/htdocs/gmap75.map',<BR>
'scales' => array( 40000000, 25000000, 12000000, 7500000, 3000000, 1000000
),<BR> 'format'
=>'PNG'<BR> );</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=377451117-06062006><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=377451117-06062006><FONT face="Trebuchet MS"
size=2>In the above example, the 'scales' index is an array of the available map
scales. If your config.php does not define the map arrays in this way,
then precache2.php won't work (nor tile.php etc).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=377451117-06062006><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=377451117-06062006><FONT face="Trebuchet MS"
size=2>If your config.php has the correct map array definition, let me know -
there could be another problem.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=377451117-06062006><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=377451117-06062006><FONT face="Trebuchet MS"
size=2>Tim</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=377451117-06062006><FONT face="Trebuchet MS"
size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> ka-map-users-bounces@lists.maptools.org
[mailto:ka-map-users-bounces@lists.maptools.org] <B>On Behalf Of </B>Base
Bloc<BR><B>Sent:</B> Tuesday, June 06, 2006 5:52 AM<BR><B>To:</B>
ka-map-users@lists.maptools.org<BR><B>Subject:</B> [ka-Map-users] Handling
large raster data sets<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Has anyone discovered what the
root of this error is? I have a similar problem when running precache2 and
this is one tool that I seriously want to get working as the performance hit
for users every a dataset is updated and the cache cleared is huge. I get the
error:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">PHP Notice: Undefined index: scales in /var/www-alpha/laos/htdocs/precache2.php on line 122<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">PHP Warning: Invalid argument supplied for foreach() in /var/www-alpha/laos/htdocs/precache2.php on line 123<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt">PHP Notice: Undefined index: path in /var/www-alpha/laos/htdocs/precache2.php on line 88<o:p></o:p></SPAN></FONT></PRE>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Looking into phpcache2.php I get
the feeling this is a mapfile issue rather than a ka-map mod issue. Here is my
usual mapfile setup at its most basic level; can anyone see anything missing
here that could be causing the problem? I am only using shape files and
geotif’s.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">NAME
GMAP_DEMO<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">STATUS
ON<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">SIZE 730 620 #size for
print view only<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">EXTENT
404283 1852082 673099 2034115 <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">UNITS
METERS<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">IMAGECOLOR 255 255
255<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">FONTSET
../htdocs/etc/fonts.txt<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">WEB<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> MINSCALE
25000<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> MAXSCALE
3000000<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"> IMAGEPATH
"../htdocs/tmp/" #image path used for print view
only<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">END<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Any thoughts
guys?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Chris </SPAN></FONT><FONT
face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoAutoSig><FONT face=Arial color=navy size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Arial">~~~~~~~~~~~~~~~~~~~~~~~~~~~<o:p></o:p></SPAN></FONT></P>
<P class=MsoAutoSig><FONT face=Arial color=navy size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Arial">Christopher
Brown<o:p></o:p></SPAN></FONT></P>
<P class=MsoAutoSig><FONT face=Arial color=navy size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Arial">Head of Internet
Development<o:p></o:p></SPAN></FONT></P>
<P class=MsoAutoSig><FONT face=Arial color=navy size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Arial">Base Bloc
<st1:country-region w:st="on"><st1:place
w:st="on">Cambodia</st1:place></st1:country-region><o:p></o:p></SPAN></FONT></P>
<P class=MsoAutoSig><FONT face=Arial color=navy size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Arial">#33, 123, <st1:place
w:st="on"><st1:City w:st="on">Phnom Penh</st1:City>, <st1:country-region
w:st="on">Cambodia</st1:country-region></st1:place>.
<o:p></o:p></SPAN></FONT></P>
<P class=MsoAutoSig><st1:address w:st="on"><st1:Street w:st="on"><FONT
face=Arial color=navy size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Arial">P.O.
Box</SPAN></FONT></st1:Street><FONT face=Arial color=navy size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Arial">
2086</SPAN></FONT></st1:address><FONT face=Arial color=navy size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P>
<P class=MsoAutoSig><FONT face=Arial color=navy size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Arial">www.basebloc.com<o:p></o:p></SPAN></FONT></P>
<P class=MsoAutoSig><FONT face=Arial color=navy size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Arial">Mobile (+855) 12
315 302</SPAN></FONT><o:p></o:p></P>
<P class=MsoAutoSig><FONT face=Arial color=navy size=1><SPAN
style="FONT-SIZE: 8pt; COLOR: navy; FONT-FAMILY: Arial">Office (+855) 23 222
015<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman"
size=2><o:p> </o:p></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>