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

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Sun Dec 4 03:22:18 PST 2011


Hi,

Thanks, natural thing that I had not checked. Fortunately or unfortunately, none of the mounts seem to have more than 2% used.  I guess that writing the request output to error.log located in the same mount would also fail in that case.

-Jukka-
 Matt McClelland wrote:


> 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