yep, and it works ok when the map shows up without queries, so I assume it can find it.
-- Maxim Вы писали 18 февраля 2008 г., 11:53:24: RG> That all looks good to me. is template.html in the same directory as RG> your map file? RG> Rich RG> On Feb 18, 2008 9:35 AM, Maxim Dubinin <[EMAIL PROTECTED]> wrote: >> Here is a portion of my map file. As you can see, I'm trying to use >> the same template.html to return result of the query back into it. It >> works under WEB when it stats, but seems like ignored >> under LAYER that is being queried (qlayer=states_poly,qitem=State). >> >> Well not exactly ignored, if I don't put anything in there it gives >> an error message. >> >> >> ************************************************************ >> MAP >> IMAGETYPE PNG >> EXTENT -97.238976 41.619778 -82.122902 49.385620 >> SIZE 400 300 >> SHAPEPATH "defquery/" >> IMAGECOLOR 255 255 255 >> >> WEB >> TEMPLATE "template.html" >> IMAGEPATH "/tmp/" >> IMAGEURL "/tmp/" >> END >> >> QUERYMAP >> STATUS ON >> SIZE 400 300 >> STYLE SELECTED >> END >> >> LAYER # States polygon layer begins here >> NAME states_poly >> DATA states_ugl >> STATUS DEFAULT >> TYPE POLYGON >> >> CLASSITEM "CLASS" >> TEMPLATE "template.html" >> METADATA >> qstring_validation_pattern '.' >> END >> CLASS >> NAME 'States' >> ************************************************************ >> >> -- >> Maxim >> >> Вы писали 18 февраля 2008 г., 8:06:58: >> >> RG> On Feb 17, 2008 9:53 PM, Maxim Dubinin <[EMAIL PROTECTED]> wrote: >> >> Thanks for suggestion, it was actually set. The strange thing is, >> >> Mapserver doesn't care about what I put in there, as long as >> >> LAYER\TEMPLATE "anything" exists. It could be any text as long >> >> as its under LAYER\TEMPLATE, even if the file doesn't exist. >> >> >> >> If I don't provide it, it gives me "msQueryByAttributes(): Query error. >> >> Requested >> >> layer has no templates defined so is not queryable." error. >> >> >> >> Is this template really for attributive results? >> >> RG> The template is for either attribute or spatial (map) display. What >> RG> gets displayed depends on the template. Maybe mapserver is not finding >> RG> your template file? >> >> RG> Rich >> >> >> _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
