<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CVIOREL%7E1.SC%7E%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:HyphenationZone>21</w:HyphenationZone>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]--><style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
mso-bidi-language:AR-SA;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;
mso-header-margin:36.0pt;
mso-footer-margin:36.0pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style><!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Tableau Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
</style>
<![endif]-->
<p class="MsoNormal"><span style="" lang="EN-CA">Hi
everyone,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="" lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="" lang="EN-CA">I’m a newbie
using MapServer and, writing my map file, I come to a problem which seems
unsolvable to me: I would like to represent only some features from a shapefile,
based on a simple SQL statement between the attributes of the respective
shapefile. I tried to use the map file exported from Qgis which looks like:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="" lang="EN-CA">…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="" lang="EN-CA">LAYER<o:p></o:p></span></p>
<p class="MsoNormal"><span style="" lang="EN-CA"><span style=""> </span><span style=""> </span>NAME 'SCTA_perm_6'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="" lang="EN-CA"><span style=""> </span>TYPE POLYGON<o:p></o:p></span></p>
<p class="MsoNormal"><span style="" lang="EN-CA"><span style=""> </span>DUMP true<o:p></o:p></span></p>
<p class="MsoNormal"><span style="" lang="EN-CA"><span style=""> </span>DATA 'locaux_etj6_poly.shp'|layerid=0|subset="unite"
LIKE 'SCTA' AND "dur_occ" LIKE 'permanent''<o:p></o:p></span></p>
<p class="MsoNormal"><span style="" lang="EN-CA"><span style=""> </span>STATUS OFF<o:p></o:p></span></p>
<p class="MsoNormal"><span style="" lang="EN-CA"><span style=""> </span>TRANSPARENCY 100<o:p></o:p></span></p>
<p class="MsoNormal"><span style="" lang="EN-CA">…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="" lang="EN-CA">but it is
not working: loadLayer(): Unknown identifier. Parsing error near (|):(line 464)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="" lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="" lang="EN-CA">I tried to
find some detailed information or examples using DATA and(or) SUBSET keywords
but I didn’t found something useful. So, can anyone explain me what is wrong,
how to do this or where to find some documentation on this.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="" lang="EN-CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="" lang="EN-CA">Thank you
in advance.</span></p><p class="MsoNormal"><br></p><p class="MsoNormal">Stephan<br><span style="" lang="EN-CA"> <o:p></o:p></span></p>
</div>
</div><br></body></html>