[mapserver-users] display only one district
Carlos Ruiz
boolean10001 at yahoo.com
Fri Mar 20 11:53:30 PDT 2015
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 <rishe28 at gmail.com>
To: jmckenna at gatewaygeomatics.com; "mapserver-users at lists.osgeo.org" <mapserver-users at 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 at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150320/242de44a/attachment.htm>
More information about the MapServer-users
mailing list