[Chameleon] How can I use a map file like a context?
Christopher R. Thorne
cthorne at dmsolutions.ca
Wed Nov 24 07:44:19 EST 2004
Alvaro,
In order for your local data to work within the Chameleon CWC Service
Instance you must publish your local mapfile threw a WMS and/or WFS OGC
Service.
http://mapserver.gis.umn.edu/doc42/wms-server-howto.html
Once that is complete I believe you could build another client side
mapfile that points to your publisher OGC Map Service.
http://mapserver.gis.umn.edu/doc42/wms-client-howto.html
I am not sure that Chameleon's CWC Service Instance allows client side
mapfiles to be loaded. Since the parameter is &CONTEXT= I suspect that
it only accepts OGC Context files.
http://mapserver.gis.umn.edu/doc42/mapcontext-howto.html
Saying ALL that in MapServer a Client Side Mapfile and OGC Context are
the same when loaded into a MapObject. And when in a MapObject can be
save as either an OGC context or Client side Mapfile.
Chris
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
>>
>
>
>
--
---------------------
Christopher R. Thorne
GIS Product Specialist,
DM Solutions Group Inc.
http://www.dmsolutions.ca
Email: cthorne at dmsolutions.ca
Phone: (613) 565-5056 ext.22
Fax : (613) 565-0925
More information about the Chameleon
mailing list