MapTools.org

[Chameleon] queryable problem

we wei mapgisnewbies@yahoo.com
Wed, 17 Mar 2004 18:53:32 -0800 (PST)
--0-1451084504-1079578412=:35384
Content-Type: text/plain; charset=us-ascii

Hello all,
 
I got a question about queryable layer.  I noticed that there are some discuession  about not getting query layer working.  I am running into this problem too.  I tried all the suggestion from the previous suggestion; however, I still couldn't make it work.  What I tried is to get the demo working with the cities layer queryable.  I modified gmap_context.xml to make cities layer point to my mapfile and enable queryable as following:
 
<Layer queryable="1" hidden="0">
      <Server service="WMS" version="1.1.0" title="Cities">
      <OnlineResource xlink:type="simple" xlink:href="http://localhost/cgi-bin/mapserv_40.exe?map=C:/ms4w/apps/gmap/htdocs/gmap75_wms.map&"/>   
   </Server>
      <Name>popplace</Name>
      <Title>Cities</Title>
      <SRS>EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304</SRS>
      <FormatList>
        <Format current="1">image/png</Format>
        <Format>image/gif</Format>
        <Format>image/jpeg</Format>
        <Format>image/wbmp</Format>
      </FormatList>
      <StyleList>
      </StyleList>
    </Layer>
 
Then I modified the cities layer in my mapfile as followed:
 
LAYER
  NAME "popplace"
  METADATA
    "wms_title"    "Cities"
    "RESULT_FIELDS" "NAME"
  END
  TYPE POINT
  STATUS ON
  DATA popplace
  PROJECTION
    "init=epsg:42304"
  END
  LabelItem "Name"
  DUMP true
  TOLERANCE 10
  TOLERANCEUNITS PIXELS
  TEMPLATE "blank.html"
  CLASSITEM "Capital"
  CLASS
    EXPRESSION "1"
    TEMPLATE "ttt_query.html"
    SYMBOL 2
    SIZE 8
    NAME "Cities"
    LABEL
      COLOR  255 0 0
      FONT fritqat-italic
      TYPE truetype
      SIZE 8
      POSITION AUTO
      PARTIALS FALSE
      OUTLINECOLOR 255 255 255
    END
    COLOR 0 0 0
  END
  CLASS
    EXPRESSION /2|3/
    TEMPLATE "ttt_query.html"
    SYMBOL 7
    SIZE 6
    NAME "Cities"
    LABEL
     COLOR  0 0 0
     FONT fritqat
     TYPE truetype
     SIZE 8
     POSITION AUTO
     PARTIALS FALSE
     OUTLINECOLOR 255 255 255
    END
    COLOR 0 0 0
  END
  Transparency 0
END # Layer
 
However, I still couldn't make it working.  It pop-up a window and said "no queryable layer found", but i did specific cities layer as queryable.  I am a newbie to chameleon.  Could anyone give me some hint on this problem?  Any help would be greatly appreciated.
 
Thanks in advance.  
 

Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
--0-1451084504-1079578412=:35384
Content-Type: text/html; charset=us-ascii

<DIV>Hello all,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I got a question about queryable layer.&nbsp; I noticed that there are some discuession&nbsp; about not getting query layer working.&nbsp; I am running into this problem too.&nbsp; I tried all the suggestion from the previous suggestion; however, I still couldn't make it work.&nbsp; What I tried&nbsp;is to&nbsp;get the demo working with the cities layer queryable.&nbsp; I modified gmap_context.xml&nbsp;to make cities layer point to my mapfile and enable queryable as following:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;Layer <STRONG>queryable="1"</STRONG> hidden="0"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Server service="WMS" version="1.1.0" title="Cities"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;OnlineResource xlink:type="simple" xlink:href="<A href='http://localhost/cgi-bin/mapserv_40.exe?map=C:/ms4w/apps/gmap/htdocs/gmap75_wms.map&amp;"/'>http://localhost/cgi-bin/mapserv_40.exe?map=C:/ms4w/apps/gmap/htdocs/gmap75_wms.map&amp;"/</A>&gt;&nbsp; &nbsp;<BR>&nbsp;&nbsp; &lt;/Server&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;popplace&lt;/Name&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Title&gt;Cities&lt;/Title&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;SRS&gt;EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304&lt;/SRS&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;FormatList&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Format current="1"&gt;image/png&lt;/Format&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &lt;Format&gt;image/gif&lt;/Format&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Format&gt;image/jpeg&lt;/Format&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Format&gt;image/wbmp&lt;/Format&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/FormatList&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;StyleList&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/StyleList&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/Layer&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Then I modified the cities layer in my mapfile as followed:</DIV>
<DIV>&nbsp;</DIV>
<DIV>LAYER<BR>&nbsp; NAME "popplace"<BR>&nbsp; METADATA<BR>&nbsp;&nbsp;&nbsp; "wms_title"&nbsp;&nbsp;&nbsp; "Cities"<BR>&nbsp;&nbsp;&nbsp; "RESULT_FIELDS" "NAME"<BR>&nbsp; END<BR>&nbsp; TYPE POINT<BR>&nbsp; STATUS ON<BR>&nbsp; DATA popplace<BR>&nbsp; PROJECTION<BR>&nbsp;&nbsp;&nbsp; "init=epsg:42304"<BR>&nbsp; END<BR>&nbsp; LabelItem "Name"<BR>&nbsp; <STRONG>DUMP true</STRONG><BR>&nbsp; <STRONG>TOLERANCE 10<BR>&nbsp; TOLERANCEUNITS PIXELS<BR>&nbsp; TEMPLATE "blank.html"<BR></STRONG>&nbsp; CLASSITEM "Capital"<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; EXPRESSION "1"<BR>&nbsp;&nbsp;&nbsp; <STRONG>TEMPLATE "ttt_query.html"<BR></STRONG>&nbsp;&nbsp;&nbsp; SYMBOL 2<BR>&nbsp;&nbsp;&nbsp; SIZE 8</DIV>
<DIV>&nbsp;&nbsp;&nbsp; NAME "Cities"<BR>&nbsp;&nbsp;&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR&nbsp; 255 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FONT fritqat-italic<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE truetype<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 8<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POSITION AUTO<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PARTIALS FALSE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 255 255 255<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; COLOR 0 0 0<BR>&nbsp; END<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; EXPRESSION /2|3/<BR>&nbsp;&nbsp;&nbsp; <STRONG>TEMPLATE "ttt_query.html"<BR></STRONG>&nbsp;&nbsp;&nbsp; SYMBOL 7<BR>&nbsp;&nbsp;&nbsp; SIZE 6<BR>&nbsp;&nbsp;&nbsp; NAME "Cities"<BR>&nbsp;&nbsp;&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp; COLOR&nbsp; 0 0 0<BR>&nbsp;&nbsp;&nbsp;&nbsp; FONT fritqat<BR>&nbsp;&nbsp;&nbsp;&nbsp; TYPE truetype<BR>&nbsp;&nbsp;&nbsp;&nbsp; SIZE 8<BR>&nbsp;&nbsp;&nbsp;&nbsp; POSITION AUTO<BR>&nbsp;&nbsp;&nbsp;&nbsp; PARTIALS
 FALSE<BR>&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 255 255 255<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; COLOR 0 0 0<BR>&nbsp; END<BR>&nbsp; Transparency 0<BR>END # Layer</DIV>
<DIV>&nbsp;</DIV>
<DIV>However, I still couldn't make it working.&nbsp; It pop-up a window and said "no queryable layer found", but i did specific cities layer as queryable.&nbsp; I am&nbsp;a newbie&nbsp;to chameleon.&nbsp; Could anyone&nbsp;give me some hint on this problem?&nbsp; Any help would be greatly appreciated.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks in advance.&nbsp; </DIV>
<DIV>&nbsp;</DIV><p><font face=arial size=-1>Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/mailtag_us/*http://mail.yahoo.com" target="_blank"><b>Yahoo! Mail</a></b> - More reliable, more storage, less spam
--0-1451084504-1079578412=:35384--


This archive was generated by Pipermail.