Query Prints Blank Template
absar ali
absarzaidi at YAHOO.COM
Mon Jun 26 02:52:14 PDT 2006
dear Frank Koormann
here is my map file, dont know why it prints the template with out data.please help me.
-----------------------------------------------------------------------------------------------------------------------
NAME Karachi
STATUS ON
SIZE 800 600
SHAPEPATH "karachiShape"
WEB
IMAGEPATH "C:/tmp/"
IMAGEURL "C:/tmp/"
END
EXTENT 40.2283 -5.55177 49.7201 1.8823
UNITS dd
IMAGECOLOR 255 255 255
IMAGETYPE png
QUERYMAP
STATUS ON
# the map is queryable by default
STYLE HILITE
# the selected object is highligthed
COLOR 255 0 0
SIZE -1 -1
END
LEGEND
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
STATUS ON
END
LAYER
NAME charge_region
TEMPLATE "template/ka.html"
METADATA
"queryable" "true"
END
TYPE POLYGON
STATUS ON
DATA CHARGE_region
LABELITEM "name"
CLASS
NAME "CHARGE_region"
COLOR 146 154 155
OUTLINECOLOR 43 170 115
LABEL
MINFEATURESIZE 40
MINDISTANCE 150
POSITION CC
SIZE TINY
COLOR 0 0 0
END
END
END
LAYER
NAME charge_polyline
TEMPLATE "template/ka.html"
METADATA
"queryable" "true"
END
TYPE LINE
STATUS OFF
DATA CHARGE_polyline
CLASS
NAME "CHARGE_polyline"
OUTLINECOLOR 3 97 136
END
END
LAYER
NAME circle_region
TEMPLATE "template/ka.html"
METADATA
"queryable" "true"
END
TYPE POLYGON
STATUS OFF
DATA CIRCLE_region
LABELITEM "name"
CLASS
NAME "CIRCLE_region"
COLOR 90 15 155
OUTLINECOLOR 200 205 133
LABEL
MINFEATURESIZE 40
MINDISTANCE 150
POSITION CC
SIZE TINY
COLOR 0 0 0
END
END
END
LAYER
NAME important_locations_point
METADATA
"queryable" "true"
END
TYPE POINT
STATUS OFF
DATA "IMPORTANT LOCATIONS_point"
CLASS
NAME "IMPORTANT LOCATIONS_point"
END
END
LAYER
NAME town_region
TEMPLATE "template/ka.html"
METADATA
"queryable" "true"
END
TYPE POLYGON
STATUS OFF
DATA TOWN_region
LABELITEM "name"
CLASS
NAME "TOWN_region"
COLOR 77 224 186
OUTLINECOLOR 244 237 138
LABEL
MINFEATURESIZE 40
MINDISTANCE 150
POSITION CC
SIZE TINY
COLOR 0 0 0
END
END
END
LAYER
NAME town_text
TEMPLATE "template/ka.html"
METADATA
"queryable" "true"
END
TYPE POINT
STATUS OFF
DATA TOWN_text
CLASS
NAME "TOWN_text"
END
END
LAYER
NAME union_council_region
TEMPLATE "template/ka.html"
METADATA
"queryable" "true"
END
TYPE POLYGON
STATUS ON
DATA "UNION COUNCIL_region"
LABELITEM "name"
CLASS
NAME "UNION COUNCIL_region"
COLOR 37 118 61
OUTLINECOLOR 220 54 199
LABEL
MINFEATURESIZE 40
MINDISTANCE 150
POSITION CC
SIZE TINY
COLOR 0 0 0
END
END
END
END
------------------------------------------------------------------------------------------------------------------------
Frank Koormann <frank.koormann at INTEVATION.DE> wrote:
Am Freitag 23 Juni 2006 10:20 schrieb absar ali:
> i am using the following line to query the map
>
> window.open("/cgi-bin/mapserv.exe?map
> paramerters.......................");
> but it just prints .
> Code No [codeno]
> Name [name]
Templates ([codeno], [name]) must be written exactly like the attribute titles
in the data. Most commonly are case sensitivity problems, since titles often
are upper case. Try [CODENO] ....
HTH,
Frank
---------------------------------
Yahoo! Sports Fantasy Football 06 - Go with the leader. Start your league today!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060626/988fcaec/attachment.htm>
More information about the MapServer-users
mailing list