problem with trying to get Item Query to work.
Mathieu Parent
mathieuparent at INFONIE.FR
Wed Sep 8 08:30:54 PDT 2004
Blammo a écrit :
> map=global/view.map&layers=usstates_poly_utm+mncounty_poly_utm&qlayer=usstates_poly_utm&qitem=FIRST_NAME&qstring=Minnesota&mode=itemquery&mapext=shapes
>
>
> The error:
>
> *msQueryByAttributes(): Query error. Requested layer has no
> templates defined. *
>
>
> The MapFile (partial):
>
> QUERYMAP
> STATUS ON
> STYLE SELECTED
> END
>
> LAYER
> NAME 'usstates_poly_utm'
#add this line :
TEMPLATE "path/to/the_template_file.html"
> DATA '/var/www/map_data/usstates_poly_utm'
> TYPE POLYGON
> STATUS OFF # must explicitly turn this layer on
> CLASS
> COLOR 255 255 200
> OUTLINECOLOR 50 50 50
> END
> END
>
> Partial data dump from dbfdump:
> What am I doing wrong please?
>
> bobb
and look http://mapserver.gis.umn.edu/doc42/template-reference.html to
create the template file.
Templates define the presentation of the results of a query
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20040908/985c6662/attachment.htm>
More information about the MapServer-users
mailing list