Hello All,

I'm trying to use an OGR outputformat as described in 
http://mapserver.org/output/ogr_output.html.  Map file contains:

OUTPUTFORMAT
  NAME "CSV"
  DRIVER "OGR/CSV"
  MIMETYPE "text/csv"
  FORMATOPTION "LCO:GEOMETRY=AS_WKT"
  FORMATOPTION "STORAGE=filesystem"
  FORMATOPTION "FORM=simple"
  FORMATOPTION "FILENAME=result.csv"
END

WEB
      IMAGEPATH "/Library/WebServer/Documents/output"
      IMAGEURL "/output/"
...
END

a request like:

http://localhost/cgi-bin/basicworld?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&typename=cities&maxfeatures=10&ouputformat=CSV

returns the error:

  <ServiceException code="NoApplicableCode" locator="mapserv">
msOGRWriteFromQuery(): General error message. Failed to open result file 
&#39;/tmp/4ec1f737_ee6f_0/result.csv&#39;.
  </ServiceException>


I don't understand why it's trying to open the output file in /tmp rather than 
the IMAGEPATH directory.  Also, if MapServer is unable to create the new work 
directory ("4ec1f737_ee6f_0" in the above example), I'm not sure how to handle 
that - even if it writes to /tmp.

This is version 6.0.1 on linux.

Thanks for any help!

--john

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to