Hi, I've forgotten an other (and easier) way to do what you want... It works with DB and shapefiles: http://svn.pmapper.net/trac/wiki/DocManual#LayerGroupDescriptionsandFieldsforQueries
Just be careful: for shapefiles, the "RESULT_FIELDS" have to be upper case, whereas for postgreSQL and maybe other DB it have to be lower case. Thomas Le 09/02/2011 17:20, wsbd008 a écrit : > Thank you Thomas, > > Sorry I didn't make it clear that I'm using the shapefile as data source. I > tried as you suggested but it's not working. > > The document about DATA of the layer in mapfile is: > DATA [filename]|[sde parameters][postgis table/column][oracle table/column]. > So I think it's not supported in MapServe to filter columns of the > shapefile... > > Maybe I need to write some code. I don't know. Do you have any suggestion > where to start or there is another solution? > > Thanks again. > > Yuduo > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users > > > ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users