<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Hello, list!</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I have a WFS server and another WFS client, which are both using MapServer.</DIV><DIV>In WFS client, I made a layer using data from WFS server.</DIV><DIV>I need all attribute items, but wanna add a class based on one of the item.</DIV><DIV>So, I included one class in the WFS layer, but mapserver cgi showed the following error:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;">msDrawMap(): Image handling error. Failed to draw layer named 'ohlung_wfs'.</SPAN></FONT><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;"> </SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;">msOGRLayerInitItemInfo(): OGR error. Invalid Field name: LWM68</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;">My question is why mapserver cannot find field name. </SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;">Except wfs_filter, isn't there any method which enables class defining using attribute from wfs server?</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;">Another question is the same situation when I used gml file using ogr connection.</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;">I made another layer, which was based on gml from wfs server.</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;">In this case, mapserver also couldn't recognize field name. </SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;">When I use gml source data, can't I make classes based on attributes?</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;">If you guys have some tips, please share them with me.</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;">Bye ..</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;">P.S:</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;">My layer definition is the following:</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV>LAYER # ohio county map from sal-dev</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>NAME ohlung_wfs</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>CONNECTIONTYPE WFS</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>CONNECTION "<A href="http://sal-dev.sal.uiuc.edu/cgi-bin/mapserv?map=%2FLibrary%2FWebServer%2FDocuments%2Fpywebspace%2Fpywebspace_wfs_server.map">http://sal-dev.sal.uiuc.edu/cgi-bin/mapserv?map=%2FLibrary%2FWebServer%2FDocuments%2Fpywebspace%2Fpywebspace_wfs_server.map</A>"</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>TYPE POLYGON</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>STATUS DEFAULT</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>METADATA</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                        </SPAN>"wfs_typename" "ohlung_ogr"</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                        </SPAN>"wfs_version" "1.0.0"</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                        </SPAN>"wfs_request_method" "GET"</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                        </SPAN>"wfs_connectiontimeout" "60"</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>END # end of ohlung_wfs metadata</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>PROJECTION</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                        </SPAN>"init=epsg:26917"</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>END # end of ohlung_wfs projection</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>CLASS</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                        </SPAN>NAME 'Ohio_county_wfs'</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                        </SPAN>STYLE</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                                </SPAN>COLOR 200 255 0</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                                </SPAN>OUTLINECOLOR 120 120 120</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                        </SPAN>END # end of style</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>END # end of ohlung_wfs base class</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>CLASS</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                        </SPAN>NAME 'LMW68 &gt;= 1 %'</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                        </SPAN>EXPRESSION ([LWM68] &gt;= 1)</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                        </SPAN>STYLE</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                                </SPAN>COLOR 255 0 0</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                                </SPAN>OUTLINECOLOR 0 0 0</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                        </SPAN>END # end of style</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>END # end of class</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>END # end of ohlung_wfs layer</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>    LAYER # ohio county map from gml, which came from sal-dev</DIV><DIV>    <SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>NAME ohlung_gml</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>CONNECTIONTYPE OGR</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>CONNECTION<SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>"oh_tmp2.gml"</DIV><DIV>    <SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>#DATA "SELECT * FROM oh_tmp.gml a LEFT JOIN '/Users/mhwang4/Sites/PyWebSpace/out_data/SM_SR_LMW68_ohlung_Queen.dbf'.SM_SR_LMW68_ohlung_Queen b ON a.RECORD_ID = b.RECORD_ID"</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>STATUS OFF</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>TYPE POLYGON</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>#JOIN</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>#<SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>NAME 'ohgmljoin'</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>#<SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>TABLE "/Users/mhwang4/Sites/PyWebSpace/out_data/SM_SR_LMW68_ohlung_Queen.dbf"</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>#<SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>FROM "RECORD_ID"</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>#<SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>TO "RECORD_ID"</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>#<SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>TYPE SINGLE</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>#END # end of join</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>PROJECTION</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                        </SPAN>"init=epsg:26917"</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>END # end of ohlung_gml layer projection</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>#CLASS</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>#<SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>NAME 'Ohio_county_gml'</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>#<SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>STYLE</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>#<SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>COLOR 0 0 255</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>#<SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>OUTLINECOLOR 0 0 0</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>#<SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>END # end of ohlung_gml base class style</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>#END # end of ohlung_gml base class</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>CLASS</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>NAME 'SR &gt;= 0.005 %'</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>EXPRESSION ([SR] &gt;= 0.005)</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>STYLE</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>COLOR 255 0 0</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>OUTLINECOLOR 0 0 0</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>END # end of ohlung_gml test class style</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>END # end of ohlung_gml test class</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>#METADATA</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>    # <SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>"wms_title"<SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>"ohiolung_smoothed"</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>#END</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">                </SPAN>#DUMP TRUE</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN></DIV><DIV>    END</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN># End of smoothing_result layer definitions ------------------------------------------------------------</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>