<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1426877359164_3107">Rishi,</div><div id="yui_3_16_0_1_1426877359164_3108"><br></div><div dir="ltr" id="yui_3_16_0_1_1426877359164_3109">From a MAP file approach, you can use the FILTER tag inside of the LAYER section:</div><div id="yui_3_16_0_1_1426877359164_3135" dir="ltr"><br></div><div id="yui_3_16_0_1_1426877359164_3157" dir="ltr">FILTER [string]</div><dl style="" class="" id="filter"><dd id="yui_3_16_0_1_1426877359164_3144" style="" class=""><div id="yui_3_16_0_1_1426877359164_3143" style="" class="">This parameter allows for data specific attribute filtering that is done
at the same time spatial filtering is done, but before any CLASS
expressions are evaluated. For OGR and shapefiles the string is simply
a mapserver regular expression. For spatial databases the string is a
SQL WHERE clause that is valid with respect to the underlying database.</div>
</dd><dd id="yui_3_16_0_1_1426877359164_3144" style="" class=""><br></dd><dd id="yui_3_16_0_1_1426877359164_3144" style="" class=""><div id="yui_3_16_0_1_1426877359164_3145" style="" class="">For example: FILTER ([type]=’road’ and [size]<2)</div>
</dd></dl><div id="yui_3_16_0_1_1426877359164_3205" dir="ltr">In a static way, you will need to have two MAP files (one without FILTER and another with FILTER) and you have to configure each project to point to the right MAP file.</div><div id="yui_3_16_0_1_1426877359164_3220" dir="ltr"><br></div> <div id="yui_3_16_0_1_1426877359164_3082" class="signature"><font id="yui_3_16_0_1_1426877359164_3084" style="font-weight:bold;color:rgb(0, 96, 191);font-family:verdana, helvetica, sans-serif;" size="2">Mtro. Carlos Ruiz</font><br></div><br>  <div id="yui_3_16_0_1_1426877359164_3046" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div id="yui_3_16_0_1_1426877359164_3045" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1426877359164_3080" dir="ltr"> <hr id="yui_3_16_0_1_1426877359164_3081" size="1">  <font id="yui_3_16_0_1_1426877359164_3079" face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> rishi <rishe28@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> jmckenna@gatewaygeomatics.com; "mapserver-users@lists.osgeo.org" <mapserver-users@lists.osgeo.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, March 20, 2015 6:43 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> [mapserver-users] display only one district<br> </font> </div> <div id="yui_3_16_0_1_1426877359164_3044" class="y_msg_container"><br><div id="yiv8915588355"><div id="yui_3_16_0_1_1426877359164_3043" dir="ltr">Hi all<div> </div><div id="yui_3_16_0_1_1426877359164_3076">Iam using Postgres database to diasplay districts on the google map</div><div id="yui_3_16_0_1_1426877359164_3042"><br></div><div id="yui_3_16_0_1_1426877359164_3047">It is working.</div><div id="yui_3_16_0_1_1426877359164_3077">But now i want to display only one district instead of 50.</div><div id="yui_3_16_0_1_1426877359164_3078">In my database there are 50 districts data, but i want to display only one.</div><div>And also i have to use the same mapfile in to 3 projects, in one project all the districts has to be displayed and in one project only one district has to be display.</div><div><br></div><div>How to do this</div><div>plz send me the code</div></div></div><br>_______________________________________________<br>mapserver-users mailing list<br><a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br><br></div> </div> </div>  </div></body></html>