Opened 13 years ago
Last modified 13 years ago
#4085 new defect
WFS GetFeature request with OGR output fails
Reported by: | jccartwright | Owned by: | mapserverbugs |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | WFS Server | Version: | 6.0 |
Severity: | normal | Keywords: | WFS OGR |
Cc: |
Description
I'm trying to use the OGR ouput as described in http://mapserver.org/output/ogr_output.html.
The GetCapabilities request works and shows the CSV as a ResultFormat. However, the GetFeature request returns the following error suggesting that the IMAGEPATH directory is not being used:
<ServiceException code="NoApplicableCode" locator="mapserv">
msOGRWriteFromQuery(): General error message. Failed to open result file '/tmp/4ec3e8bc_6069_0/result.csv'.
Mapfile 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
LAYER
NAME Countries
...
METADATA
"wfs_getfeature_formatlist" "CSV"
...
END
END
Change History (2)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
I am getting the same result both with Ubuntu 10.04 and Mapserver 6.0.1 and on Windows with MS4W and Mapserver 6.0.0. By using TEMPPATH I can control the target directory but it does not make the system to work. Result is always like the error above "Failed to open result file '/temppath/subdir_string/result.csv'.
The temppath directory seems to be writable for Mapserver, at least I can direct MS_ERRORFILE there and I can see also that temporary .gml and .gfs files appear there if I use cascading WFS layers. I wonder if something goes wrong with creating the temporary directory under the temppath.
Problem has been reproduced using 6.0.1 on linux (RHEL 5.7) and MacOS 10.6