You could try regex<br><br>\&quot;Area\&quot;<br><br>-Adam<br><br><div class="gmail_quote">On Wed, May 27, 2009 at 6:48 PM, Peter Willis <span dir="ltr">&lt;<a href="mailto:peterw@borstad.com">peterw@borstad.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hello,<br>
<br>
I am having a problem serving a PostGIS layer via mapserver<br>
as WFS.<br>
<br>
The problem arises from the generation/use of column names<br>
in PostgreSQL that require double quotes.<br>
<br>
ie:<br>
<br>
 SELECT oid,gid, the_geom, &quot;Area&quot;,&quot;Perimeter&quot;,&quot;PixelValue&quot; FROM global_Land_poly WHERE &quot;PixelValue&quot;=1;<br>
<br>
<br>
<br>
In the map file the &#39;DATA&#39; member of the PostGIS layer is defined as:<br>
<br>
DATA &quot;the_geom from (select oid,gid, the_geom, Area,Perimeter,PixelValue FROM global_Land_poly WHERE PixelValue=1 ) AS FOO using SRID=4326&quot;<br>
<br>
<br>
&lt;ERR&gt;Mapserver relays a PostGIS error from PostgreSQL:<br>
&#39;ERROR:  column &quot;area&quot; does not exist...&lt;/ERR&gt;<br>
<br>
This is because the column name is actually &quot;Area&quot;<br>
and requires quotes.<br>
<br>
How do I define double quotes in my PostGIS query<br>
within the &#39;DATA&#39; element of my mapfile layer?<br>
<br>
Thanks for any enlightenment,<br>
<br>
Peter<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div><br>