<div dir="ltr">Hi all,<div><br></div><div>I am using mapserver to allow WFS in Openlayers to access point data held in a PostgreSQL / PostGIS database. The mapfile includes the following statement:</div><div><br></div><div>...</div><div><i>INCLUDE "readonly.config"<br>DATA "geom FROM table USING srid=32636 USING UNIQUE fid"</i><br></div><div>...</div><div><br></div><div>Currently I make a new mapfile for each site visit to each project. However this means every time a new site visit or project is made, I have to create a new mapfile, and the only thing that changes is the "table" part of the statement. All the styling info is in the Openlayers WFS statements.</div><div><br></div><div>Is it possible to get Openlayers to pass variables to the DATA parameter (e.g. a different table name) when called so that I can reuse the same mapfile for different WFS calls? </div><div>Or alternatively, could store the point data in the same PostgreSQL table and have some other way of filtering the data (e.g. on timestamp)</div><div>Am I misunderstanding how I should be using mapfiles? </div><div><br></div><div>thanks,</div><div>Neil</div></div>