[mapserver-users] Trouble with OGR output and writing to temppath

Matt McClelland matt at wildwalks.com
Sun Dec 4 06:02:01 EST 2011


Check if you have enough disk space left

 df -alh

Matt :)

Sent from my iPhone

On 04/12/2011, at 9:29 PM, Rahkonen Jukka <Jukka.Rahkonen at mmmtike.fi> wrote:

> Hi,
> 
> I have troubles with getting the ORG output to work. 
> 
> I have configured CVS ouput like this
> 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
> 
> I have set TEMPPATH in the MAP/WEB
> WEB
>       TEMPPATH "/usr/temp/"
> 
> /usr/temp directory has 0777 permissions.  Mapserver can write error.log file into that directory without troubles. 
> WFS works normally with outputformats GML2 and GML3. However, WFS requests with CSV outputformat fails and I am getting error messages like this:
> 
> msOGRWriteFromQuery(): General error message. Failed to open result file '/usr/temp/4edb45fd_707c_0/result.csv'.
> 
> Error.log file is also listing all the features and all the attributes so the query itself is successful. 
> I am trying this with Ubuntu server and Mapserver version is 6.0.1.  It is also odd that I am sure that I did manage to get valid zipped shapefiles out from this same server a couple of days ago but now all that I am getting back is empty zipfile. Error.log does not report about any error in this case.
> 
> Any suggestions what to try next or what to do for finding the ultimate reason for the error?
> 
> -Jukka Rahkonen-
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list