[mapserver-users] No query layer defined.
Obe, Regina DND\MIS
Regina.Obe.PFD at ci.boston.ma.us
Mon Sep 17 12:37:10 PDT 2001
This is a bit of a guess since I'm new to mapserv myself, but I think your
TEMPLATE tag should be within your class definition (in 3.5)
Try this instead
LAYER
NAME carrers
TYPE LINE
STATUS DEFAULT
DATA carrers
LABELITEM "Nomsencerc"
CLASS
COLOR 128 40 40
LABEL
COLOR 0 0 0
OUTLINECOLOR 255 255 230
MINSIZE 4
MINDISTANCE 100
MAXSIZE 8
MINFEATURESIZE 100
MINFEATURESIZE AUTO
BUFFER 2
END
TEMPLATE case4_template.html
END
END
-----Original Message-----
From: toni hernández [mailto:toni at giscampus.udg.es]
Sent: Monday, September 17, 2001 11:37 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [mapserver-users] No query layer defined.
Hi everybody,
I am just about to abandon. :-(
I have mapserver version 3.5 and I am trying to select some streets in the
map using a simple html form but I get this message:
"msQueryByAttributes(): General error message. No query layer defined. "
Here is the layer in question.
LAYER
NAME carrers
TYPE LINE
STATUS DEFAULT
DATA carrers
LABELITEM "Nomsencerc"
CLASS
COLOR 128 40 40
LABEL
COLOR 0 0 0
OUTLINECOLOR 255 255 230
MINSIZE 4
MINDISTANCE 100
MAXSIZE 8
MINFEATURESIZE 100
MINFEATURESIZE AUTO
BUFFER 2
END
END
TEMPLATE case4_template.html
END
Anyone knows?
More information about the MapServer-users
mailing list