|
||||
[Chameleon] queryable problemPaul Spencer spencer@dmsolutions.caThu, 01 Apr 2004 15:20:22 -0500
|
did you ever get this to work? It looks as if you have done all the right things. Paul we wei wrote: > 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&"/ > <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* <http://us.rd.yahoo.com/mailtag_us/*http://mail.yahoo.com> > - More reliable, more storage, less spam > -- ----------------------------------------------------------------- |Paul Spencer pspencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| -----------------------------------------------------------------
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |