|
||||
[Chameleon] Querying LayersDarren.Cope@statcan.ca Darren.Cope@statcan.caTue, 16 Mar 2004 08:37:51 -0500
|
Hello Tracy, Thanks for the help! I finally got the query to work, after ensuring that the DUMP, and TOLERANCE lines where set, and that each layer had a TEMPLATE. However, it is also necessary, as I found out eventually, that the LAYER NAME not have a space in it, as this will cause the queries to not work. Even though I had everything right, and your "park" example worked fine for me, my "provincial boundary" layer did not. Replacing the space with an underscore solved the problem though! Hopefully this will help out others who may be having this problem. Any way I can still use a space in the name (with an escape character of some sort?) Thanks! Darren -----Original Message----- From: Tracy Howlett [mailto:thowlett@whistlermuseum.org] Sent: March 15, 2004 4:47 PM To: Darren.Cope@statcan.ca Cc: chameleon@lists.maptools.org Subject: RE: [Chameleon] Querying Layers Hi Darren, I had a similar problem..make sure you've got your tolerance units set as well. This is an example of one of my query layers. LAYER NAME "Park" TYPE POLYGON DUMP TRUE TEMPLATE "blank.html" TOLERANCE 10 TOLERANCEUNITS PIXELS STATUS ON GROUP "Municipal Park" DATA "Park" CLASS COLOR 150 231 138 END METADATA WMS_TITLE "Park" WMS_ABSTRACT "Park" END END I've been trying to modify the output of the query results myself. Right now each record returns the Shape and ID items as well as the useful attribute data. I'm trying to suppress these fields. If you happen to figure it out would you mind letting me know! Thanks, Tracy -----Original Message----- From: chameleon-admin@lists.maptools.org [mailto:chameleon-admin@lists.maptools.org] On Behalf Of Darren.Cope@statcan.ca Sent: Monday, March 15, 2004 9:00 AM To: eric@gomoos.org; Darren.Cope@statcan.ca Cc: chameleon@lists.maptools.org Subject: RE: [Chameleon] Querying Layers Thanks for the suggestion Eric. However, this does not seem to solve my problem. Darren -----Original Message----- From: Eric Bridger [mailto:eric@gomoos.org] Sent: March 15, 2004 11:04 AM To: Darren.Cope@statcan.ca Cc: chameleon@lists.maptools.org Subject: Re: [Chameleon] Querying Layers I'm new to this too, but I happen to have a guess. You also need DUMP TRUE in your layer. On Mon, 2004-03-15 at 08:38, Darren.Cope@statcan.ca wrote: > Hi all, > > I am currently setting up the Chameleon "CWC2 Demo Template" to work > with some of our own data. Using MapServer as a WMS, I am able to > view the data. However, I am unable to get it to query any of the > layers properly. I get the pop-up which says "no results for this > layer." I do have a "template" line set in the .map file, but this > does not seem to help (i.e. I get the same message without the line). > I am sure I am missing something obvious, as I am new to this! > > Thanks for any suggestions, > > Darren Cope > Statistics Canada/Statistique Canada > Geography Division/Division de la géographie > Jean Talon 3D5 > Ottawa, Canada > (613) 951-6461 > _______________________________________________ Chameleon mailing list Chameleon@lists.maptools.org http://lists.maptools.org/mailman/listinfo/chameleon _______________________________________________ Chameleon mailing list Chameleon@lists.maptools.org http://lists.maptools.org/mailman/listinfo/chameleon
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |