[Chameleon] How can I use a map file like a context?

Paul Spencer pspencer at dmsolutions.ca
Wed Nov 24 07:44:06 EST 2004


Alvaro,

you have two choices:

1. turn your map file into a WMS server then create a context that uses 
the layers from your WMS server

2. don't use the service instance.  Instead, copy one of the sample 
files and modify the .phtml file to point to your map file.

Cheers,

Paul

Alvaro Zabala wrote:
> Hi!
> I have a webmapping service configuration in a map file (all layers
> are local layers).
> I want to use this webmapping service with Chameleon.
> 
> How do I have to  make the request to Chameleon instance so it use my
> *.map file and not a context file?
> 
> I have tried this:
> 
> http://localhost/chameleon/cwc2/cwc2.php?name=Agilwebmaster&service=VCG&request=GetApplication&version=0.1.0&LANGUAGES=en-CA&TEMPLATES=http%3A%2F%2Flocalhost%2Fchameleon%2Fsamples%2Fhellomap.html&CONTEXTS=http://localhost/prueba1/htdocs/prueba5.map
> 
> without too much success.
> 
> May I have to replace CONTEXTS=url_of_my_map_file ?
> 
> Thanks in advance!
> 
> 
> On Tue, 23 Nov 2004 21:31:37 -0500, Paul Spencer
> <pspencer at dmsolutions.ca> wrote:
> 
>>Hi,
>>
>>please make sure that you are not automatically starting a session (in
>>php.ini session.auto_start)
>>
>>Paul
>>
>>
>>
>>
>>joanvp wrote:
>>
>>>Hi list,
>>>
>>>I've tried to use an authorisation against Chameleon app (a sample)
>>>and I've used MySQL. But when the user insert gets authorisation just
>>>can see Chameleon interface. All is fine except map.
>>>
>>>I can see this message under the title:
>>>
>>>/Notice: A session had already been started - ignoring session_start()
>>>in C:\ms4w\apps\chameleon\htdocs\common\session\session.php on line 487
>>>/
>>>And when I press Error Button I can see all this message:
>>>
>>>/Warning: dl(): Unable to load dynamic library
>>>'/ms4w/Apache/php/extensions/' - No se puede encontrar el módulo
>>>especificado. in C:\ms4w\apps\chameleon\htdocs\widgets\session.inc.php
>>>on line 59
>>>
>>>Warning(s)
>>>No langauge is set.
>>>No langauge is set.
>>>No Valid map object to restore to.
>>>
>>>Warning: array_reverse(): The argument should be an array in
>>>C:\ms4w\apps\chameleon\htdocs\widgets\CWC2ButtonCache.php on line 162
>>>
>>>Warning: Invalid argument supplied for f! oreach() in
>>>C:\ms4w\apps\chameleon\htdocs\widgets\CWC2ButtonCache.php on line 162
>>>
>>>Warning: array_reverse(): The argument should be an array in
>>>C:\ms4w\apps\chameleon\htdocs\widgets\CWC2ButtonCache.php on line 179
>>>
>>>Warning: Invalid argument supplied for foreach() in
>>>C:\ms4w\apps\chameleon\htdocs\widgets\CWC2ButtonCache.php on line 179
>>>/
>>>Can someone show a way to solve this problem?
>>>
>>>Thanks in advanced... and excuse my english ;)
>>>I'm using:
>>>Chameleon 1.99b3
>>>Apache
>>>MySQL
>>>Windows 2k
>>>
>>>------------------------------------------------------------------------
>>>Do you Yahoo!?
>>>Check out the new Yahoo! Front Page. www.yahoo.com <http://www.yahoo.com>
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>_______________________________________________
>>>Chameleon mailing list
>>>Chameleon at lists.maptools.org
>>>http://lists.maptools.org/mailman/listinfo/chameleon
>>
>>--
>>+-----------------------------------------------------------------+
>>|Paul Spencer                           pspencer at dmsolutions.ca   |
>>+-----------------------------------------------------------------+
>>|Applications & Software Development                              |
>>|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
>>+-----------------------------------------------------------------+
>>_______________________________________________
>>Chameleon mailing list
>>Chameleon at lists.maptools.org
>>http://lists.maptools.org/mailman/listinfo/chameleon
>>
> 
> 
> 

-- 
+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+


More information about the Chameleon mailing list