|
||||
[Chameleon] queryable problemwe wei mapgisnewbies@yahoo.comWed, 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> </DIV> <DIV>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:</DIV> <DIV> </DIV> <DIV><Layer <STRONG>queryable="1"</STRONG> hidden="0"><BR> <Server service="WMS" version="1.1.0" title="Cities"><BR> <OnlineResource xlink:type="simple" xlink:href="<A href='http://localhost/cgi-bin/mapserv_40.exe?map=C:/ms4w/apps/gmap/htdocs/gmap75_wms.map&"/'>http://localhost/cgi-bin/mapserv_40.exe?map=C:/ms4w/apps/gmap/htdocs/gmap75_wms.map&"/</A>> <BR> </Server><BR> <Name>popplace</Name><BR> <Title>Cities</Title><BR> <SRS>EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326 EPSG:42304</SRS><BR> <FormatList><BR> <Format current="1">image/png</Format><BR> <Format>image/gif</Format><BR> <Format>image/jpeg</Format><BR> <Format>image/wbmp</Format><BR> </FormatList><BR> <StyleList><BR> </StyleList><BR> </Layer></DIV> <DIV> </DIV> <DIV>Then I modified the cities layer in my mapfile as followed:</DIV> <DIV> </DIV> <DIV>LAYER<BR> NAME "popplace"<BR> METADATA<BR> "wms_title" "Cities"<BR> "RESULT_FIELDS" "NAME"<BR> END<BR> TYPE POINT<BR> STATUS ON<BR> DATA popplace<BR> PROJECTION<BR> "init=epsg:42304"<BR> END<BR> LabelItem "Name"<BR> <STRONG>DUMP true</STRONG><BR> <STRONG>TOLERANCE 10<BR> TOLERANCEUNITS PIXELS<BR> TEMPLATE "blank.html"<BR></STRONG> CLASSITEM "Capital"<BR> CLASS<BR> EXPRESSION "1"<BR> <STRONG>TEMPLATE "ttt_query.html"<BR></STRONG> SYMBOL 2<BR> SIZE 8</DIV> <DIV> NAME "Cities"<BR> LABEL<BR> COLOR 255 0 0<BR> FONT fritqat-italic<BR> TYPE truetype<BR> SIZE 8<BR> POSITION AUTO<BR> PARTIALS FALSE<BR> OUTLINECOLOR 255 255 255<BR> END<BR> COLOR 0 0 0<BR> END<BR> CLASS<BR> EXPRESSION /2|3/<BR> <STRONG>TEMPLATE "ttt_query.html"<BR></STRONG> SYMBOL 7<BR> SIZE 6<BR> NAME "Cities"<BR> LABEL<BR> COLOR 0 0 0<BR> FONT fritqat<BR> TYPE truetype<BR> SIZE 8<BR> POSITION AUTO<BR> PARTIALS FALSE<BR> OUTLINECOLOR 255 255 255<BR> END<BR> COLOR 0 0 0<BR> END<BR> Transparency 0<BR>END # Layer</DIV> <DIV> </DIV> <DIV>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.</DIV> <DIV> </DIV> <DIV>Thanks in advance. </DIV> <DIV> </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. |
MapTools.org -- Hosted by DM Solutions Group |