[mapserver-users] display only one district

2015-03-20 Thread rishi
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

[mapserver-users] RE display only one district

2015-03-20 Thread Steve . Toutant
Have a look at runtime variable substitution http://mapserver.org/cgi/runsub.html rishi rish...@gmail.com@lists.osgeo.org Envoyé par : mapserver-users-boun...@lists.osgeo.org 2015-03-20 08:43 A jmcke...@gatewaygeomatics.com, mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org

Re: [mapserver-users] display only one district

2015-03-20 Thread Carlos Ruiz
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

Re: [mapserver-users] display only one district

2015-03-20 Thread Steve . Toutant
In other threads of this list, it was suggested to use a subquery in DATA instead of using FILTER, when postgis is used as a datasource. http://mapserver.org/fr/input/vector/postgis.html#data-access-connection-method If you want to use only one mapfile than runtime variable substitution can be