MapTools.org

[Chameleon] context file (newbie)

Fortin,Nicolas [SteFoy] nicolas.fortin@ec.gc.ca
Wed, 17 Mar 2004 08:47:34 -0500
This is a multi-part message in MIME format.

------_=_NextPart_001_01C40C26.6698FF90
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Martin,
=20
First, If you have Chameleon 1.1, it is now possible to use mapserver =
mapfile instead of context file.
=20
For previous version : How I make my context file ? I begin with a empty =
context by taking gmap_context.xml, removing all layers and rename it =
empty_context.xml.  I then load the demo with this empty context ( =
TEMPLATE=3Ddemo.html&CONTEXT=3Dempty_context.xml ) and using the layer =
manager, I add all layer from my mapserver WMS.  Last, I download the =
resulting context so I can use it.
=20
Hope this help,
Nicolas

-----Message d'origine-----
De : Martin Kiuru [mailto:Martin.Kiuru@Elion.ee]=20
Envoy=E9 : Wednesday, March 17, 2004 8:39 AM
=C0 : chameleon@lists.maptools.org
Objet : [Chameleon] context file (newbie)


Hi,
=20
I am new to chameleon. I have a simple mapserver-based web-application =
and want to re-make it using chameleon to get more functionality. So, I =
wish to build chameleon application based on existing map-file and data. =
Now I am trying to modify existing demo.html to work with my data, but I =
have a problem wit it.
=20
As I understood, chameleon application uses context xml file to display =
layers. I have no context file with my application and can't find any =
information about how to make context files, if all layer information is =
stored locally. Maybe there is no need to use it at all in this case ? =
Now chameleon can display my data, all navigation except query works, =
but I have error messages about context() after each redraw. So, can you =
help me with context file writing ? Maybe you have an example of =
stand-alone configuration, or at least some manuals ?
=20
Thanks in advice,
Martin Kiuru


------_=_NextPart_001_01C40C26.6698FF90
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D545534213-17032004><FONT face=3DArial color=3D#0000ff =
size=3D2>Hi=20
Martin,</FONT></SPAN></DIV>
<DIV><SPAN class=3D545534213-17032004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D545534213-17032004><FONT face=3DArial color=3D#0000ff =
size=3D2>First,=20
If you have Chameleon 1.1, it is now possible to use mapserver mapfile =
instead=20
of context file.</FONT></SPAN></DIV>
<DIV><SPAN class=3D545534213-17032004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D545534213-17032004><FONT face=3DArial color=3D#0000ff =
size=3D2>For=20
previous version : How I make my context file ? I begin with a empty =
context by=20
taking gmap_context.xml, removing all layers and rename it=20
empty_context.xml.&nbsp; I then load the demo with this empty context (=20
TEMPLATE=3Ddemo.html&amp;CONTEXT=3Dempty_context.xml ) and using the =
layer manager,=20
I add all layer from my mapserver WMS.&nbsp; Last, I download the =
resulting=20
context so I can use it.</FONT></SPAN></DIV>
<DIV><SPAN class=3D545534213-17032004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D545534213-17032004><FONT face=3DArial color=3D#0000ff =
size=3D2>Hope=20
this help,</FONT></SPAN></DIV>
<DIV><SPAN class=3D545534213-17032004><FONT face=3DArial color=3D#0000ff =

size=3D2>Nicolas</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Dfr dir=3Dltr =
align=3Dleft><FONT face=3DTahoma=20
  size=3D2>-----Message d'origine-----<BR><B>De&nbsp;:</B> Martin Kiuru=20
  [mailto:Martin.Kiuru@Elion.ee] <BR><B>Envoy=E9&nbsp;:</B> Wednesday, =
March 17,=20
  2004 8:39 AM<BR><B>=C0&nbsp;:</B>=20
  chameleon@lists.maptools.org<BR><B>Objet&nbsp;:</B> [Chameleon] =
context file=20
  (newbie)<BR><BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN=20
  class=3D022352812-17032004>Hi,</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN=20
  class=3D022352812-17032004></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN class=3D022352812-17032004>I am =
new to=20
  chameleon. I have a simple mapserver-based web-application and want to =
re-make=20
  it using chameleon to get more functionality. So, I wish to build =
chameleon=20
  application based on existing map-file&nbsp;and data. Now&nbsp;I am =
trying to=20
  modify existing demo.html to work with my data, but I have&nbsp;a =
problem wit=20
  it.</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN=20
  class=3D022352812-17032004></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN class=3D022352812-17032004>As I =
understood,=20
  chameleon application uses context xml file to display layers. I have =
no=20
  context file with my application and&nbsp;can't find any information =
about how=20
  to&nbsp;make context files, if all layer information is stored=20
  locally.&nbsp;Maybe there is no need to use it at all in this case=20
  ?&nbsp;Now&nbsp;chameleon can display my data, all navigation except =
query=20
  works, but&nbsp;I have error messages about context()&nbsp;after each=20
  redraw.&nbsp;So, can you help me with context file writing ? Maybe you =
have an=20
  example of stand-alone configuration, or at least some manuals=20
  ?</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN=20
  class=3D022352812-17032004></SPAN></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN =
class=3D022352812-17032004>Thanks in=20
  advice,</SPAN></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2><SPAN =
class=3D022352812-17032004>Martin=20
  Kiuru</SPAN></FONT></DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C40C26.6698FF90--


This archive was generated by Pipermail.