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

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Sun Dec 4 12:41:09 EST 2011


Hi,

I could repeat the error on Windows (MS4W and Mapserver 6.0.0).  This time data come from shapefile while previously they came from PostGIS.  However, your error is not exactly the same than mine. You have "OGR CreateDataSource failed" while I am getting "Failed to open result file".

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

-Jukka Rahkonen-

Smith, Michael wrote:

> Jukka,

> I've started having this issue on Windows mapserver just recently. I have
> not had this problem on unix. Not sure if this is a mapserver issue or a
> gdal one.

> I get similar errors to yours:

> msOGRWriteFromQuery(): General error message. OGR CreateDataSource failed
for 'C:/cm2_files/tmp/4edb808b_178_0/ship_locations.gdb.zip' with driver
'FileGDB'.

It appears to only happen with FORMATOPTION "STORAGE=filesystem".


Mike

--
Michael Smith

US Army Corps
Remote Sensing GIS/Center



On 12/4/11 6:22 AM, "Rahkonen Jukka" <Jukka.Rahkonen at mmmtike.fi> wrote:

>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
>_______________________________________________
>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