<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=398384715-16042004><FONT face=Arial color=#0000ff size=2>Please 
ignore this.  Thanks!</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Choi,Stephanie 
  [Ontario] <BR><B>Sent:</B> Thursday, April 15, 2004 2:56 PM<BR><B>To:</B> 
  chameleon@lists.maptools.org<BR><B>Subject:</B> [Chameleon] Problem in preview 
  widget<BR><BR></FONT></DIV><!-- Converted from text/rtf format -->
  <P><FONT face=Arial size=2>Hi all,</FONT> </P>
  <P><FONT face=Arial size=2>I got a question about the preview widget.  I 
  am working with Chameleon 1.0 and Mapserver-dev version which is the latest 
  one I got from cvs.  And when I includes legend to be displayed in the 
  preview, it shows the default icons which is the "?" instead of the symbols 
  that I set to them.  I understand that in Chameleon 1.0, it uses a 
  context file to create an updated mapfile whenever a change is made to the 
  application.  And I found out that those legend icons are created from 
  the legendurls which are included in the context file within each style 
  block.  Therefore, I made the following test context file for testing the 
  creation of legend icons in preview:</FONT></P>
  <P><FONT face=Arial size=1><?xml version='1.0' encoding="ISO-8859-1" 
  standalone="no" ?></FONT> <BR><FONT face=Arial size=1><ViewContext 
  version="1.0.0" id="envirodat_wms" xmlns:xsi="<A 
  href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A>" 
  xmlns:xlink="<A 
  href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</A>" 
  xmlns="<A 
  href="http://www.opengis.net/context">http://www.opengis.net/context</A>" 
  xsi:schemaLocation="<A 
  href="http://www.opengis.net/context">http://www.opengis.net/context</A> 
  </FONT><A href="http://schemas.opengis.net/context/1.0.0/context.xsd"><U><FONT 
  face=Arial color=#0000ff 
  size=1>http://schemas.opengis.net/context/1.0.0/context.xsd</FONT></U></A><FONT 
  face=Arial size=1>"></FONT></P>
  <P><FONT face=Arial size=1>  <!-- LayerList of Layer elements</FONT> 
  <BR><FONT face=Arial size=1>       - implied 
  order: bottom To Top</FONT> <BR><FONT face=Arial 
  size=1>       first Layer element is bottom most 
  layer in map view</FONT> <BR><FONT face=Arial 
  size=1>       last Layer elements is op most 
  layer in map view</FONT> <BR><FONT face=Arial size=1>  --></FONT> 
  <BR><FONT face=Arial size=1>  <LayerList></FONT> <BR><FONT 
  face=Arial size=1>    <Layer queryable="0" 
  hidden="0"></FONT> <BR><FONT face=Arial 
  size=1>      <Server service="WMS" version="1.1.1" 
  title="Aviation_Surface_Weather_Network"></FONT> <BR><FONT face=Arial 
  size=1>        <OnlineResource 
  xlink:type="simple" xlink:href="<A 
  href="http://localhost/cgi-bin/wms">http://localhost/cgi-bin/wms</A>?"/></FONT> 
  <BR><FONT face=Arial size=1>      
  </Server></FONT> <BR><FONT face=Arial 
  size=1>      
  <Name>Aviation_Surface_Weather_Network</Name></FONT> <BR><FONT 
  face=Arial size=1>      
  <Title>Aviation_Surface_Weather_Network</Title></FONT> <BR><FONT 
  face=Arial size=1>      <SRS>EPSG:42304 
  EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304</SRS></FONT> <BR><FONT 
  face=Arial size=1>      <FormatList></FONT> 
  <BR><FONT face=Arial size=1>        
  <Format current="1">image/png</Format></FONT> <BR><FONT face=Arial 
  size=1>        
  <Format>image/jpeg</Format></FONT> <BR><FONT face=Arial 
  size=1>        
  <Format>image/wbmp</Format></FONT> <BR><FONT face=Arial 
  size=1>      </FormatList></FONT> <BR><FONT 
  face=Arial size=1>      <StyleList></FONT> 
  <BR><FONT face=Arial size=1>        
  <Style current="1"></FONT> <BR><FONT face=Arial 
  size=1>          
  <Name>avn</Name></FONT> <BR><FONT face=Arial 
  size=1>          
  <Title>avn</Title></FONT> <BR><FONT face=Arial 
  size=1>          <LegendURL 
  width="18" height="12" format="image/png"></FONT> <BR><FONT face=Arial 
  size=1>            
  <OnlineResource xlink:type="simple" xlink:href="<A 
  href="http://localhost/cgi-bin/wms?version=1.1.1&request=GetLegendGraphic&Layer=Aviation_Surface_Weather_Network&format=image%2Fpng&simple=true">http://localhost/cgi-bin/wms?version=1.1.1&request=GetLegendGraphic&Layer=Aviation_Surface_Weather_Network&format=image%2Fpng&simple=true</A>"/></FONT></P>
  <P><FONT face=Arial 
  size=1>          
  </LegendURL></FONT> <BR><FONT face=Arial 
  size=1>        </Style></FONT> 
  <BR><FONT face=Arial size=1>      
  </StyleList></FONT> <BR><FONT face=Arial size=1>    
  </Layer></FONT> <BR><FONT face=Arial size=1>  
  </LayerList></FONT> <BR><FONT face=Arial 
  size=1></ViewContext></FONT> </P>
  <P><FONT face=Arial size=1>Here is the corresponding mapfile that generated by 
  Chameleon:</FONT> </P>
  <P><FONT face=Arial size=1>MAP</FONT> <BR><FONT face=Arial size=1>  
  EXTENT -2594561.35333333 -712631 3467361.35333333 3840000</FONT> <BR><FONT 
  face=Arial size=1>  FONTSET "/var/www/html/cwc2/etc/fonts.txt"</FONT> 
  <BR><FONT face=Arial size=1>  IMAGECOLOR 255 255 255</FONT> <BR><FONT 
  face=Arial size=1>  IMAGETYPE png</FONT> <BR><FONT face=Arial 
  size=1>  RESOLUTION 90.714286</FONT> <BR><FONT face=Arial size=1>  
  SYMBOLSET "/var/www/html/cwc2/etc/symbols.sym"</FONT> <BR><FONT face=Arial 
  size=1>  SIZE 400 300</FONT> <BR><FONT face=Arial size=1>  STATUS 
  ON</FONT> <BR><FONT face=Arial size=1>  TRANSPARENT TRUE</FONT> <BR><FONT 
  face=Arial size=1>  UNITS METERS</FONT> <BR><FONT face=Arial 
  size=1>  NAME "envirodat_wms"</FONT> </P>
  <P><FONT face=Arial size=1>  OUTPUTFORMAT</FONT> <BR><FONT face=Arial 
  size=1>    NAME png</FONT> <BR><FONT face=Arial 
  size=1>    MIMETYPE image/png</FONT> <BR><FONT face=Arial 
  size=1>    DRIVER GD/PNG</FONT> <BR><FONT face=Arial 
  size=1>    EXTENSION png</FONT> <BR><FONT face=Arial 
  size=1>    IMAGEMODE PC256</FONT> <BR><FONT face=Arial 
  size=1>    TRANSPARENT TRUE</FONT> <BR><FONT face=Arial 
  size=1>  END</FONT> </P>
  <P><FONT face=Arial size=1>  PROJECTION</FONT> <BR><FONT face=Arial 
  size=1>    "init=epsg:42304"</FONT> <BR><FONT face=Arial 
  size=1>  END</FONT> <BR><FONT face=Arial size=1>  LEGEND</FONT> 
  <BR><FONT face=Arial size=1>      IMAGECOLOR 255 255 
  255</FONT> <BR><FONT face=Arial size=1>    KEYSIZE 18 12</FONT> 
  <BR><FONT face=Arial size=1>    KEYSPACING 5 5</FONT> <BR><FONT 
  face=Arial size=1>    LABEL</FONT> <BR><FONT face=Arial 
  size=1>      SIZE MEDIUM</FONT> <BR><FONT face=Arial 
  size=1>      TYPE BITMAP</FONT> <BR><FONT face=Arial 
  size=1>      BUFFER 0</FONT> <BR><FONT face=Arial 
  size=1>      COLOR 0 0 89</FONT> <BR><FONT face=Arial 
  size=1>      FORCE FALSE</FONT> <BR><FONT face=Arial 
  size=1>      MINDISTANCE -1</FONT> <BR><FONT 
  face=Arial size=1>      MINFEATURESIZE -1</FONT> 
  <BR><FONT face=Arial size=1>      OFFSET 0 0</FONT> 
  <BR><FONT face=Arial size=1>      PARTIALS 
  TRUE</FONT> <BR><FONT face=Arial size=1>    END</FONT> 
  <BR><FONT face=Arial size=1>    POSITION LL</FONT> <BR><FONT 
  face=Arial size=1>    STATUS ON</FONT> <BR><FONT face=Arial 
  size=1>    TEMPLATE "legend_template.html"</FONT> <BR><FONT 
  face=Arial size=1>  END</FONT> </P>
  <P><FONT face=Arial size=1>  QUERYMAP</FONT> <BR><FONT face=Arial 
  size=1>      COLOR 255 0 0</FONT> <BR><FONT 
  face=Arial size=1>    SIZE -1 -1</FONT> <BR><FONT face=Arial 
  size=1>    STATUS OFF</FONT> <BR><FONT face=Arial 
  size=1>    STYLE HILITE</FONT> <BR><FONT face=Arial 
  size=1>  END</FONT> </P>
  <P><FONT face=Arial size=1>  REFERENCE</FONT> <BR><FONT face=Arial 
  size=1>    COLOR -1 -1 -1</FONT> <BR><FONT face=Arial 
  size=1>    EXTENT -1 -1 -1 -1</FONT> <BR><FONT face=Arial 
  size=1>    IMAGE "./images/keymap.png"</FONT> <BR><FONT 
  face=Arial size=1>    OUTLINECOLOR 255 0 0</FONT> <BR><FONT 
  face=Arial size=1>    SIZE 120 90</FONT> <BR><FONT face=Arial 
  size=1>    STATUS ON</FONT> <BR><FONT face=Arial 
  size=1>      MARKER 0</FONT> <BR><FONT face=Arial 
  size=1>      MARKERSIZE 0</FONT> <BR><FONT face=Arial 
  size=1>      MINBOXSIZE 3</FONT> <BR><FONT face=Arial 
  size=1>      MAXBOXSIZE 0</FONT> <BR><FONT face=Arial 
  size=1>  END</FONT> </P>
  <P><FONT face=Arial size=1>  SCALEBAR</FONT> <BR><FONT face=Arial 
  size=1>      BACKGROUNDCOLOR 0 0 0</FONT> <BR><FONT 
  face=Arial size=1>      COLOR 255 255 255</FONT> 
  <BR><FONT face=Arial size=1>    IMAGECOLOR 255 255 255</FONT> 
  <BR><FONT face=Arial size=1>    INTERVALS 5</FONT> <BR><FONT 
  face=Arial size=1>    LABEL</FONT> <BR><FONT face=Arial 
  size=1>      SIZE SMALL</FONT> <BR><FONT face=Arial 
  size=1>      TYPE BITMAP</FONT> <BR><FONT face=Arial 
  size=1>      BUFFER 0</FONT> <BR><FONT face=Arial 
  size=1>      COLOR 0 0 0</FONT> <BR><FONT face=Arial 
  size=1>      FORCE FALSE</FONT> <BR><FONT face=Arial 
  size=1>      MINDISTANCE -1</FONT> <BR><FONT 
  face=Arial size=1>      MINFEATURESIZE -1</FONT> 
  <BR><FONT face=Arial size=1>      OFFSET 0 0</FONT> 
  <BR><FONT face=Arial size=1>      PARTIALS 
  TRUE</FONT> <BR><FONT face=Arial size=1>      
  POSITION CR</FONT> <BR><FONT face=Arial size=1>    END</FONT> 
  <BR><FONT face=Arial size=1>      OUTLINECOLOR 0 0 
  0</FONT> <BR><FONT face=Arial size=1>    POSITION LL</FONT> 
  <BR><FONT face=Arial size=1>    SIZE 300 5</FONT> <BR><FONT 
  face=Arial size=1>    STATUS ON</FONT> <BR><FONT face=Arial 
  size=1>    STYLE 0</FONT> <BR><FONT face=Arial 
  size=1>    TRANSPARENT TRUE</FONT> <BR><FONT face=Arial 
  size=1>    UNITS KILOMETERS</FONT> <BR><FONT face=Arial 
  size=1>  END</FONT> </P>
  <P><FONT face=Arial size=1>  WEB</FONT> <BR><FONT face=Arial 
  size=1>    IMAGEPATH "/var/www/html/cwc2/tmp/images/"</FONT> 
  <BR><FONT face=Arial size=1>    IMAGEURL "/image_tmp/"</FONT> 
  <BR><FONT face=Arial size=1>    LOG "error.log"</FONT> 
  <BR><FONT face=Arial size=1>      METADATA</FONT> 
  <BR><FONT face=Arial size=1>        
  "original_projection"   "init=epsg:42304"</FONT> <BR><FONT 
  face=Arial size=1>        
  "wms_connectiontimeout" "3000"</FONT> <BR><FONT face=Arial 
  size=1>        
  "original_extents"      
  "-2200000,-712631,3072800,3840000"</FONT> <BR><FONT face=Arial 
  size=1>        
  "wms_context_version"   "1.0.0"</FONT> <BR><FONT face=Arial 
  size=1>        
  "wms_title"     "WMS Demo"</FONT> <BR><FONT face=Arial 
  size=1>      END</FONT> <BR><FONT face=Arial 
  size=1>    QUERYFORMAT text/html</FONT> <BR><FONT face=Arial 
  size=1>  END</FONT> </P>
  <P><FONT face=Arial size=1>  LAYER</FONT> <BR><FONT face=Arial 
  size=1>    CONNECTION "</FONT><A 
  href="http://localhost/cgi-bin/wms?"><U><FONT face=Arial color=#0000ff 
  size=1>http://localhost/cgi-bin/wms?</FONT></U></A><FONT face=Arial 
  size=1>"</FONT> <BR><FONT face=Arial size=1>    CONNECTIONTYPE 
  WMS</FONT> <BR><FONT face=Arial size=1>      
  METADATA</FONT> <BR><FONT face=Arial 
  size=1>        
  "wms_srs"       "EPSG:42304 EPSG:42101 EPSG:4269 
  EPSG:4326 EPSG:42304"</FONT> <BR><FONT face=Arial 
  size=1>        
  "wms_onlineresource"    "</FONT><A 
  href="http://localhsot/cgi-bin/wms?"><U><FONT face=Arial color=#0000ff 
  size=1>http://localhsot/cgi-bin/wms?</FONT></U></A><FONT face=Arial 
  size=1>"</FONT> <BR><FONT face=Arial 
  size=1>        
  "wms_style_avn_legendurl_width" "18"</FONT> <BR><FONT face=Arial 
  size=1>        
  "wms_name"      
  "Aviation_Surface_Weather_Network"</FONT> <BR><FONT face=Arial 
  size=1>        
  "wms_style_avn_title"   "avn"</FONT> <BR><FONT face=Arial 
  size=1>        
  "wms_style_avn_legendurl_format"        
  "image/png"</FONT> <BR><FONT face=Arial 
  size=1>        
  "wms_style_avn_legendurl_height"        
  "12"</FONT> <BR><FONT face=Arial 
  size=1>        
  "wms_formatlist"        
  "image/png,image/jpeg,image/wbmp"</FONT> <BR><FONT face=Arial 
  size=1>        
  "wms_format"    "image/png"</FONT> <BR><FONT face=Arial 
  size=1>        "LEGEND_ORDER"  
  "0"</FONT> <BR><FONT face=Arial 
  size=1>        
  "wms_style_avn_legendurl_href"  "</FONT><A 
  href="http://localhost/cgi-bin/wms?version=1.1.1&request=GetLegendGraphic&Layer=Aviation_Surface_Weather_Network&format=image%2Fpng&simple=true"><U><FONT 
  face=Arial color=#0000ff 
  size=1>http://localhost/cgi-bin/wms?version=1.1.1&request=GetLegendGraphic&Layer=Aviation_Surface_Weather_Network&format=image%2Fpng&simple=true</FONT></U></A><FONT 
  face=Arial size=1>"</FONT></P>
  <P><FONT face=Arial size=1>        
  "wms_server_version"    "1.1.1"</FONT> <BR><FONT face=Arial 
  size=1>        "wms_stylelist" "avn"</FONT> 
  <BR><FONT face=Arial size=1>        
  "wms_style"     "avn"</FONT> <BR><FONT face=Arial 
  size=1>        
  "wms_title"     "Aviation_Surface_Weather_Network"</FONT> 
  <BR><FONT face=Arial size=1>      END</FONT> 
  <BR><FONT face=Arial size=1>    NAME 
  "l0:Aviation_Surface_Weather_Network"</FONT> <BR><FONT face=Arial 
  size=1>    SIZEUNITS PIXELS</FONT> <BR><FONT face=Arial 
  size=1>    STATUS ON</FONT> <BR><FONT face=Arial 
  size=1>    TOLERANCE 0</FONT> <BR><FONT face=Arial 
  size=1>    TOLERANCEUNITS PIXELS</FONT> <BR><FONT face=Arial 
  size=1>    TYPE RASTER</FONT> <BR><FONT face=Arial 
  size=1>    UNITS METERS</FONT> <BR><FONT face=Arial 
  size=1>  END</FONT> </P>
  <P><FONT face=Arial size=1>END</FONT> </P>
  <P><FONT face=Arial size=2>However, when I starts Chameleon 1.0 with this 
  context file, I got the following error and the map image doesn't generate at 
  all:</FONT></P>
  <P><FONT face=Arial size=2>"msWMSLoadGetMapParams (): Invalid style ((null)) 
  Mapserver supports only default styles and is expecting an empty string for 
  the STYLES: or STYLES=,,,,"</FONT></P>
  <P><FONT face=Arial size=2>Does anyone have any idea on this problem ?  I 
  guess I am missing something or messing up something in the mapfile or context 
  file.  If anyone knows the proper way to set up this, please let me 
  know.  Hey I am a newbie to the Chameleon, so if I misunderstood 
  anything,  just let me know :)</FONT></P>
  <P><FONT face=Arial size=2>Any help would be greatly appreciated.</FONT> </P>
  <P><FONT face=Arial size=2>Thanks in advance,</FONT> </P>
  <P><FONT face=Arial size=2>Stephanie  
</FONT></P></BLOCKQUOTE></BODY></HTML>