Rishi,
>From a MAP file approach, you can use the FILTER tag inside of the LAYER 
>section:
FILTER [string]   
      - This parameter allows for data specific attribute filtering that is 
doneat the same time spatial filtering is done, but before any CLASSexpressions 
are evaluated. For OGR and shapefiles the string is simplya mapserver regular 
expression. For spatial databases the string is aSQL WHERE clause that is valid 
with respect to the underlying database.
      -    

      - For example: FILTER ([type]=’road’ and [size]<2)
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.
 Mtro. Carlos Ruiz

      From: rishi <rish...@gmail.com>
 To: jmcke...@gatewaygeomatics.com; "mapserver-users@lists.osgeo.org" 
<mapserver-users@lists.osgeo.org> 
 Sent: Friday, March 20, 2015 6:43 AM
 Subject: [mapserver-users] display only one district
   
Hi all Iam using Postgres database to diasplay districts on the google map
It is working.But now i want to display only one district instead of 50.In my 
database there are 50 districts data, but i want to display only one.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.
How to do thisplz send me the code
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

  
_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to