[Fwd: Re: [Chameleon] Cwc2 error. [MapServer Error]: getDouble():
Parsing error near (IMAGECOLOR) or (nan]
Normand Savard
nsavard at mapgears.com
Tue Feb 19 10:51:37 EST 2008
I made a mistake in the email addressing when sending a cc to the list.
So I forward my answer to the list to fix that.
Norm
-------- Original Message --------
Subject: Re: [Chameleon] Cwc2 error. [MapServer Error]: getDouble():
Parsing error near (IMAGECOLOR) or (nan
Date: Tue, 19 Feb 2008 10:30:07 -0500
From: Normand Savard <nsavard at mapgears.com>
To: john lace <johnlace65 at hotmail.com>
References: <BLU134-W3CF94E64729B9EDC71475C42C0 at phx.gbl>
<47A9E044.1030102 at mapgears.com>
<BLU134-W37EE8C7FB839FC899828A6C4220 at phx.gbl>
john lace wrote:
>Hi, Norm.
>
>I wonder if you have found the time to find out how to make cwc2 work, and help me with this. I'm really stuck and I have no further ideas about how to go past this problem.
>
>
>
John,
I fixed the issue (see bug 1853 on MapTools.org). You can get a new
version of chameleon.php or use the attach patch.
Norm
-------------- next part --------------
Index: chameleon.php
===================================================================
RCS file: /cvs/maptools/cvsroot/chameleon/htdocs/chameleon.php,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -p -r1.93 -r1.94
--- chameleon.php 6 Sep 2007 14:26:33 -0000 1.93
+++ chameleon.php 19 Feb 2008 15:18:39 -0000 1.94
@@ -2,7 +2,7 @@
/**
*
* @project CWC2
- * @revision $Id: chameleon.php,v 1.93 2007/09/06 14:26:33 jlacroix Exp $
+ * @revision $Id: chameleon.php,v 1.94 2008/02/19 15:18:39 nsavard Exp $
* @purpose Main Chameleon class definition
* @author DM Solutions Group (sfournier at dmsolutions.ca)
* @copyright
@@ -737,9 +737,9 @@ class Chameleon
//echo "create map file<BR>";
$this->mszMapFile = getSessionSavePath()."default.map";
$oMap = ms_newMapObj( "" );
- $oMap->set( "width", 1 );
- $oMap->set( "height", 1 );
- $oMap->setExtent( -1, -1, 1, 1 );
+ $oMap->set( "width", 5 );
+ $oMap->set( "height", 5 );
+ $oMap->setExtent( -5, -5, 5, 5 );
$oMap->save( $this->mszMapFile );
$this->moMapSession->readMapFile($this->mszMapFile,
More information about the Chameleon
mailing list