[mapserver-users] WFS request outputting csv and limited by maxfeatures [SEC=UNCLASSIFIED]

Kathleen Hirst K.Hirst at bom.gov.au
Mon Aug 15 00:46:37 EDT 2011


Dear List,

For a WFS 1.0.0 request, I am wanting to output text/csv and also restrict the number of records returned by using &maxfeatures.

A request is successful if the data source is OGR (csv file), but I get the following error if the data source is PostGIS.

Content-type: text/xml

<?xml version='1.0' encoding="ISO-8859-1" ?>
 <ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://www.bom.gov.au/wfs/1.0.0/OGC-exception.xsd">
 <ServiceException code="NoApplicableCode" locator="mapserv">
 msOGRWriteFromQuery(): General error message. Failed to open result file &#39;/tmp/4e48981a_2ffd_0/result.csv&#39;.
 </ServiceException>
 </ServiceExceptionReport>

The WFS request works fine (output GML or text/csv) without using &maxfeatures. I get the same error if I use "WFS_MAXFEATURES" in the WEB metadata.
I'm using Mapserver 6.0.1.

Thanks,

Kathleen



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110815/9d4ba8a8/attachment.html


More information about the mapserver-users mailing list