<div dir="ltr">What is the best practice for using selecting data with a where clause in MapServer using PostGIS connection<div><br></div><div>i.e.</div><div><br></div><div><div>DATA "the_geom from (SELECT gid, the_geom FROM audience_table WHERE audience = 'Farmers') as foo using unique gid using SRID=4326"</div>
</div><div><br></div><div>OR</div><div><br></div><div>DATA "the_geom from audience_table using SRID=4326"<br></div><div><br></div><div>with a class expression</div><div><br></div><div>CLASSITEM audience</div><div>
....</div><div>EXPRESSION 'Farmer'</div><div><br></div><div>Thanks</div><div><br></div></div>