Problem installing ka-map 1.0 with ms4w 2.2.2
Andre Lockhart
andre at COVALUATE.COM
Fri Jun 8 11:47:00 PDT 2007
Try using TileCache with OpenLayers instead of ka-Map!
http://www.tilecache.org/
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of carlos gordon
Sent: Friday, June 08, 2007 10:42 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Problem installing ka-map 1.0 with ms4w 2.2.2
--0-1188692049-1181324500=:50919
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi all!
I´m trying to configure it the installation of ka-map with ms4w but i have
many troubles making it works properly, at first these are the steps i
follow:
1. Creation of mapfile
2. Configured the Apache web alias
3. Before that i have to run the setenv.bat file to set the .dll path
4. Defining alias and restartig Apache:
Alias /kamap "/ms4w/apps/ka-map-1.0/htdocs"
<Directory "/ms4w/apps/ka-map-1.0">
AllowOverride None
Options Indexes FollowSymLinks Multiviews
Order allow,deny
Allow from all
</Directory>
5. Configuring config.php
First, pointing to php modules:
$szPHPMapScriptModule = "php_mapscript_4.10.0.".PHP_SHLIB_SUFFIX;
$szPHPGDModule = 'php_gd2.' .PHP_SHLIB_SUFFIX;
Later, defining the map array
$aszMapFiles = array(
"PanamaMap" => array( "Provincias Panama",
"/ms4w/apps/kamap-1.0/htdocs/mapas/map/panama.map",
array( 250000, 120000, 75000, 30000, 10000
),
"PNG")
);
* szMap should be set to the default map file to use but can change if
* this script is called with map=<mapname>.
*/
$szMap = 'PanamaMap';
Setting the directories for cache
* for the application (see mapfile configuration above.)
*/
$szBaseCacheDir = "C:/ms4w/tmp/ms_tmp/";
/* Uncomment the following if you have a web accessible cache */
$szBaseWebCache = "../tmp/ms_tmp/";
But it doesn´t seem to work properly, because when i go to
http://localhost:8080/ka-map/, the browser IE 6.0, send me this message:
Line: 76
Char: 1
Error: Object expected
Code: 0
URL: http://localhost:8080/ka-map/
I'm using the ms4w 2.2.2 version and ka-map 1.0 on Windows XP 64x
I have like one week figthing with this problem, because i need to
configure kamap to create tiles and use it with Open Layers as a web client
in my project.
Thanxs in advanced,
Carlos A. Gordón
Especialista en GIS
Tel. (507) 665-49715
cagb78 at nuzkiamedia.com
Vía Sonadora, casa 5,
Penonome, Provincia de Coclé
Panamá
--0-1188692049-1181324500=:50919
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<div>Hi all!</div> <div>I´m trying to configure it the installation of
ka-map with ms4w but i have many troubles making it works properly, at first
these are the steps i follow:</div> <div>1. Creation of mapfile<BR>2.
Configured the Apache web alias<BR>3. Before that i have to run the
setenv.bat file to set the .dll path<BR>4. Defining alias and restartig
Apache:</div> <div>Alias /kamap
"/ms4w/apps/ka-map-1.0/htdocs"<BR><Directory
"/ms4w/apps/ka-map-1.0"><BR> AllowOverride None<BR> Options
Indexes FollowSymLinks Multiviews <BR> Order allow,deny<BR>
Allow from all<BR></Directory></div> <div>5. Configuring
config.php<BR>First, pointing to php modules:</div>
<div>$szPHPMapScriptModule =
"php_mapscript_4.10.0.".PHP_SHLIB_SUFFIX;<BR>$szPHPGDModule = 'php_gd2.'
.PHP_SHLIB_SUFFIX;</div> <div>Later, defining the map array<BR>$aszMapFiles
= array(<BR>
"PanamaMap" => array(
"Provincias Panama",
<BR>
&nbs
p;
"/ms4w/apps/kamap-1.0/htdocs/mapas/map/panama.map",<BR> &nb
sp; &
nbsp;  
; array( 250000, 120000, 75000, 30000, 10000
),<BR> &nbs
p; &n
bsp; "PNG")<BR>);</div> <div> *
szMap should be set to the default map file to use but can change
if<BR> * this script is called with
map=<mapname>.<BR> */<BR>$szMap = 'PanamaMap';</div>
<div>Setting the directories for cache</div> <div>* for the application
(see mapfile
configuration above.)<BR> */<BR>$szBaseCacheDir =
"C:/ms4w/tmp/ms_tmp/";</div> <div>/* Uncomment the following if you have a
web accessible cache */<BR>$szBaseWebCache = "../tmp/ms_tmp/";</div>
<div>But it doesn´t seem to work properly, because when i go to <A
href="http://localhost:8080/ka-map/">http://localhost:8080/ka-map/</A>, the
browser IE 6.0, send me this message:<BR>Line: 76<BR>Char: 1<BR>Error:
Object expected<BR>Code: 0<BR>URL: <A
href="http://localhost:8080/ka-map/">http://localhost:8080/ka-map/</A></div>
<div>I'm using the ms4w 2.2.2 version and ka-map 1.0 on Windows XP 64x</div>
<div>I have like one week figthing with this problem, because i need to
configure kamap to create tiles and use it with Open Layers as a web
client in my project.</div> <div>Thanxs in advanced,</div><BR><BR>Carlos A.
Gordón <BR><FONT color=#0000ff size=1>Especialista en GIS <BR>Tel. (507)
665-49715 <BR>cagb78 at nuzkiamedia.com <BR>Vía Sonadora, casa 5, <BR>Penonome,
Provincia de Coclé <BR>Panamá</FONT>
--0-1188692049-1181324500=:50919--
More information about the MapServer-users
mailing list