<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>I am trying to use Queryable WMS with MapServer as my
WMS server.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>After some initial confusion, it would seem I have my
basic toolset working, because I can issue a query and get a
response.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>However, my response lacks useful feature data. This is
what has confounded me. From the tutorials/documentatation/e-mail lists I've
read, it seems like MapServer lacks any sort of way to control what feature data
is returned... you turn on DUMP TRUE and you just get everything under the point
you queried. I look at the shape file which is the data source for my query
layer, and the shape file DBF has roughly 20 different attributes... strings,
integers, and floats. Lots of stuff. The layer is a polygon
layer.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>If the point I query does not hit a polygon, no data is
returned (well, the GML returned is an empty shell).</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>If I hit a point, I get the GML coordinates and that is
it.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2>--- snip
---</FONT></SPAN><SPAN class=829260618-13012006><BR><FONT face=Arial
size=2><msGMLOutput><BR><ParcelsBySystemTypeAndInstallDate_layer><BR><ParcelsBySystemTypeAndInstallDate_feature><BR><gml:boundedBy><BR><gml:Box
srsName="EPSG:26945"><BR><SPAN
class=784231318-13012006><</SPAN>gml:coordinates><BR>6351230.073489,1837213.999341
6351887.175583,1837921.120908<BR></gml:coordinates><BR></gml:Box><BR></gml:boundedBy><BR></ParcelsBySystemTypeAndInstallDate_feature><BR></ParcelsBySystemTypeAndInstallDate_layer><BR></msGMLOutput></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2>--- snip
---</FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2>(for
example)</FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>SO, that is my output. My MapFile looks
like:</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>--- snip ---</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>[.. typical Map header stuff
..]</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006> WEB<BR> METADATA<BR> "wms_title"
"Malibu-IWIMS-GIS"<BR> "wms_onlineresource" "<A
href="http://192.168.224.120/cgi-bin/mapserv?map=../public_html/GIS/maps/Malibu.map">http://192.168.224.120/cgi-bin/mapserv?map=../public_html/GIS/maps/Malibu.map</A>&"<BR> "wms_srs"
"EPSG:26945"<BR> END<BR> LOG
"/httpd/Malibu/logs/mslog"<BR> END<BR>
##############################################################################<BR> PROJECTION<BR> "init=epsg:26945"<BR>
END</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>[..More layers and stuff..]</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006> ##############################################################################<BR> LAYER
# THIS IS THE DYNAMICALLY SETUP LAYER<BR> NAME
"ParcelsBySystemTypeAndInstallDate"<BR> STATUS ON<BR> DATA
"TempShape"<BR> TYPE POLYGON<BR> TEMPLATE
"Blank.html"<BR> HEADER "Blank.html"<BR> FOOTER
"Blank.html"<BR> DUMP
TRUE<BR> METADATA<BR> "wms_title"
"Parcels with Systems where System Type is
Conventional, shaded by Install
Date"<BR> "wms_onlineresource" "<A
href="http://192.168.224.120/cgi-bin/mapserv?map=../public_html/GIS/maps/Malibu.map">http://192.168.224.120/cgi-bin/mapserv?map=../public_html/GIS/maps/Malibu.map</A>&"<BR> "wms_srs"
"EPSG:26945"<BR> END<BR> PROJECTION<BR> "init=epsg:26945"<BR>
END<BR> CLASSITEM
'INSTALLDAT'<BR> CLASS<BR> NAME "No
Classification"<BR> EXPRESSION
''<BR> STYLE<BR> COLOR 128 128
128<BR> OUTLINECOLOR 255 255
255<BR> ANTIALIAS
true<BR> END<BR> END<BR> CLASS<BR> NAME
'Unspecified Date'<BR> EXPRESSION
''<BR> STYLE<BR> COLOR 100 100
100<BR> OUTLINECOLOR 255 255
255<BR> ANTIALIAS
true<BR> END<BR> END<BR> CLASS<BR> NAME
'2002-06-03 -> 1997-06-03'<BR> EXPRESSION (('[INSTALLDAT]'
le '2002-06-03') and ('[INSTALLDAT]' gt
'1997-06-03'))<BR> STYLE<BR> COLOR 255
128 128<BR> OUTLINECOLOR 16 16
16<BR> ANTIALIAS
true<BR> END<BR> END<BR> CLASS<BR> NAME
'1997-06-03 -> 1992-06-03'<BR> EXPRESSION (('[INSTALLDAT]'
le '1997-06-03') and ('[INSTALLDAT]' gt
'1992-06-03'))<BR> STYLE<BR> COLOR 128
255 128<BR> OUTLINECOLOR 16 16
16<BR> ANTIALIAS
true<BR> END<BR> END<BR> CLASS<BR> NAME
'1992-06-03 -> 1987-06-03'<BR> EXPRESSION (('[INSTALLDAT]'
le '1992-06-03') and ('[INSTALLDAT]' gt
'1987-06-03'))<BR> STYLE<BR> COLOR 128
128 255<BR> OUTLINECOLOR 16 16
16<BR> ANTIALIAS
true<BR> END<BR> END<BR> CLASS<BR> NAME
'1987-06-03 -> 1982-06-03'<BR> EXPRESSION (('[INSTALLDAT]'
le '1987-06-03') and ('[INSTALLDAT]' ge
'1979-01-01'))<BR> STYLE<BR> COLOR 96
255 0<BR> OUTLINECOLOR 16 16
16<BR> ANTIALIAS
true<BR> END<BR> END</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006> END</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>--- snip ---</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>Note that, I have tried adding TEMPLATE entries inside
of each class, and it has not changed the output
result.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>I am using Mapserver 4.6.1</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>So... how do I get my layer to return more attribute
data than just coordinates?</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>Here is a list of the attributes in the
shapefile.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>--- snip ---</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>$> dbfdump --info TempShape.dbf
<BR>Filename:
TempShape.dbf<BR>Version: 0x03 (ver.
3)<BR>Num of records: 756<BR>Header length: 865<BR>Record length:
1362<BR>Last change: 1995/7/26<BR>Num
fields: 26<BR>Field info:<BR>Num
Name
Type Len
Decimal<BR>1.
APN
C 20
0<BR>2.
TRA
C 11
0<BR>3. EDITORNAME
C 35
0<BR>4. DISCHARGET
C 31
0<BR>5.
USECODE
C 11
0<BR>6.
UNIT
C 11
0<BR>7.
UDATE
C 16
0<BR>8.
PHASE
C 11
0<BR>9.
MOVED
C 11
0<BR>10. PARCELIDST
C 255
0<BR>11.
BLOCK
C 11
0<BR>12.
PARCELID
N 11
0<BR>13. SYSTEMTYPE
C 255
0<BR>14.
PCLTYPE
C 11
0<BR>15. INSTALLDAT
C 255
0<BR>16. SHAPE_AREA
N 19
0<BR>17.
SUBDTYPE
C 11
0<BR>18. SHAPE_LEN
N 19
0<BR>19. PERIMETER
N 19
0<BR>20.
AREA
N 19
0<BR>21.
LOT
C 11
0<BR>22.
AIN
C 11
0<BR>23.
OID_
N 11
0<BR>24.
TRACT
C 20
0<BR>25.
OBJECTID
N 11
0<BR>26.
SYSTEMID
C 255
0</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>--- snip ---</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>and here is a sample record:</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>--- snip ---</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>OGRFeature(TempShape):335<BR> APN (String) =
4452-011-033<BR> TRA (String) = (null)<BR> EDITORNAME (String) =
(null)<BR> DISCHARGET (String) = Small Commercial<BR> USECODE
(String) = (null)<BR> UNIT (String) = (null)<BR> UDATE (String) =
0<BR> PHASE (String) = (null)<BR> MOVED (String) = (null)<BR>
PARCELIDST (String) = 4452011033<BR> BLOCK (String) = (null)<BR>
PARCELID (Integer) = 204481<BR> SYSTEMTYPE (String) =
Conventional<BR> PCLTYPE (String) = (null)<BR> INSTALLDAT (String) =
(null)<BR> SHAPE_AREA (Integer) = 22868<BR> SUBDTYPE (String) =
(null)<BR> SHAPE_LEN (Integer) = 596<BR> PERIMETER (Integer) =
596<BR> AREA (Integer) = 22868<BR> LOT (String) = (null)<BR>
AIN (String) = 4452011033<BR> OID_ (Integer) = 1792<BR> TRACT
(String) = (null)<BR> OBJECTID (Integer) = 900225<BR> SYSTEMID
(String) = 205760<BR> POLYGON ((6354269.883 1835660.066,6354143.342
1835646.922,6354142.028 1835646.739,6354141.200 1835646.661,6354140.371
1835646.613,6354139.540 1835646.594,6354138.709 1835646.603,6354137.878
1835646.641,6354137.050 1835646.709,6354136.224 1835646.805,6354135.403
1835646.930,6354134.586 1835647.084,6354133.775 1835647.266,6354132.971
1835647.476,6354132.174 1835647.714,6354131.387 1835647.980,6354130.609
1835648.273,6354129.842 1835648.594,6354129.087 1835648.940,6354128.344
1835649.313,6354127.614 1835649.712,6354126.899 1835650.136,6354126.199
1835650.584,6354125.516 1835651.056,6354124.849 1835651.553,6354124.200
1835652.072,6354123.569 1835652.614,6354122.958 1835653.176,6354122.367
1835653.760,6354121.796 1835654.365,6354121.247 1835654.989,6354120.720
1835655.632,6354120.216 1835656.293,6354119.735 1835656.971,6354119.278
1835657.665,6354118.845 1835658.375,6354118.439 1835659.100,6354118.056
1835659.838,6354117.701 1835660.589,6354117.371 1835661.352,6354117.068
1835662.126,6354116.793 1835662.911,6354116.545 1835663.704,6354116.325
1835664.505,6354116.133 1835665.315,6354115.970 1835666.129,6354115.835
1835666.949,6354115.729 1835667.774,6354115.651 1835668.602,6354115.603
1835669.431,6354102.028 1835793.535,6354116.428 1835795.234,6354252.761
1835811.328,6354269.883 1835660.066))</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2><SPAN
class=784231318-13012006>--- snip ---</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial size=2>Thank you in advance
for your reponse,</FONT></SPAN></DIV>
<DIV><SPAN class=829260618-13012006><FONT face=Arial
size=2>Nick</FONT></SPAN></DIV></DIV></BODY></HTML>