<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.17063" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=797311004-15082011>Dear 
List,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=797311004-15082011></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=797311004-15082011>For a WFS 1.0.0 
request, I am wanting to output text/csv and also restrict the number of records 
returned by using &amp;maxfeatures.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=797311004-15082011></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=797311004-15082011>A&nbsp;request is 
successful&nbsp;if the data source is OGR (csv file), but I get the following 
error if the data source is PostGIS. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=797311004-15082011></SPAN></FONT><FONT 
face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Content-type: text/xml<BR>&nbsp;<BR>&lt;?xml 
version='1.0' encoding="ISO-8859-1" ?&gt;<BR>&nbsp;&lt;ServiceExceptionReport 
version="1.2.0" xmlns="<A 
href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</A>" xmlns:xsi="<A 
href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</A>" 
xsi:schemaLocation="<A 
href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</A> <A 
href="http://www.bom.gov.au/wfs/1.0.0/OGC-exception.xsd">http://www.bom.gov.au/wfs/1.0.0/OGC-exception.xsd</A>"&gt;<BR>&nbsp;&lt;ServiceException 
code="NoApplicableCode" locator="mapserv"&gt;<BR>&nbsp;msOGRWriteFromQuery(): 
General error message. Failed to open result file 
&amp;#39;/tmp/4e48981a_2ffd_0/result.csv&amp;#39;.<BR>&nbsp;&lt;/ServiceException&gt;<BR>&nbsp;&lt;/ServiceExceptionReport&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The&nbsp;<SPAN class=797311004-15082011>WFS 
</SPAN>request works fine (output GML or&nbsp;text/csv)&nbsp;without 
using&nbsp;&amp;maxfeatures. I get the same&nbsp;error if I use 
"WFS_MAXFEATURES" in the WEB metadata.</FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=797311004-15082011>I'm using Mapserver 
6.0.1.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=797311004-15082011></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=797311004-15082011>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=797311004-15082011></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=797311004-15082011>Kathleen</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=797311004-15082011></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=797311004-15082011></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>