Thanks Paul - I&#39;ll have to create a switch to identify...<br><br>Thanks for the prompt response...<br><br><br><br><div class="gmail_quote">2008/5/29 Paul Ramsey &lt;<a href="mailto:pramsey@cleverelephant.ca">pramsey@cleverelephant.ca</a>&gt;:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hilarity ensues, same issue being debated in another thread.<br>
<br>
In your case, no, there&#39;s probably no way around it. query is<br>
implemented as a FILTER, and filter gets passed directly to the<br>
underlying data store as SQL. The syntax for FILTER in shape files is<br>
mapserver specific, the syntax for PostGIS filter is PostgreSQL<br>
specific.<br>
<br>
Store all your data in postgis :)<br>
Or, more hackily, name your layers based on their storage type.<br>
pg_layer1, shp_layer2, etc.<br>
<br>
Sorry!<br>
<br>
P<br>
<div><div></div><div class="Wj3C7c"><br>
On Thu, May 29, 2008 at 9:24 AM, Mike Saunt &lt;<a href="mailto:mikesaunt@gmail.com">mikesaunt@gmail.com</a>&gt; wrote:<br>
&gt; Hi All<br>
&gt;<br>
&gt; We have an application that calls MapServer CGI from C# which creates<br>
&gt; regular expressions for qitem (itemnquery etc) - basically when calling a<br>
&gt; shape file all is good but not with PostGIS<br>
&gt;<br>
&gt; uniqueid~&#39;(a|A)(b|B)(c|C)123&#39; = good for postgis<br>
&gt;<br>
&gt; [uniqueid]=~/(a|A)(b|B)(c|C)123/ = bad for postgis (good for mapserver)<br>
&gt;<br>
&gt; Does anyone know a way around - the calling app doesn&#39;t necessarily know<br>
&gt; whether the base layer is PostGIS or OGR or Shape etc<br>
&gt;<br>
&gt; Cheers<br>
&gt; Mike<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; mapserver-users mailing list<br>
&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br>