Hi, Storage=memory yields the following error with MS4W: General error message. Failed to open result file '/vsimem/ogr_out/4eeb6efb_c00_0/result.csv'.
-Jukka Rahkonen- ________________________________________ Smith, Michael ERDC-CRREL-NH wrote: > Actually, on most drivers you can use STORAGE=memory and it does work. > The only driver I've need to use STORAGE=filesystem is FileGDB. > I have my shapfile format defined as follows OUTPUTFORMAT NAME "Shapefile" DRIVER "OGR/ESRI Shapefile" FORMATOPTION "STORAGE=memory" FORMATOPTION "FORM=zip" FORMATOPTION "FILENAME=%outfile%.zip" END Mike On 12/16/11 10:19 AM, "Rahkonen Jukka" <[email protected]> wrote: >Hi, > >STORAGE=filesystem, yes, and I am following the ticket. Just wanted to >make it easier to start investigating the problem. Other storage >alternatives did not work for me any better on Linux but I have not tried >them on Windows. I think that filesystem is the one which should work for >all drivers. What is odd is that I have managed to get one valid zipped >shapefile from Linux server but after that success I have been receiving >just empty zips. > >-Jukka- > >> -----Alkuperäinen viesti----- >> Lähettäjä: Smith, Michael ERDC-CRREL-NH >> [mailto:[email protected]] >> Lähetetty: 16. joulukuuta 2011 17:12 >> Vastaanottaja: Rahkonen Jukka; '[email protected]' >> Aihe: Re: [mapserver-users] Cannot get OGR output to work >> >> Jukka, >> >> Are the OGR Output formats defined as STORAGE=filesystem? That is the >> error I've had. >> >> There is a ticket for this. >> http://trac.osgeo.org/mapserver/ticket/4085 >> >> On my linux box, I'm using GDAL 1,9 r12670 and not having a >> problem so I >> suspect this is a GDAL issue (or a GDAL/MapServer issue). >> >> I'll try narrowing down on which version of GDAL this started >> occurring. >> >> Mike >> >> On 12/16/11 9:55 AM, "Rahkonen Jukka" >> <[email protected]> wrote: >> >> >Hi, >> > >> >I wonder if anybody has managed to make the OGR output to >> work? For me >> >all my trials have stopped to an error that seems to mean >> that Mapserver >> >can't write out a temporary file. The same happens both on >> Windows and >> >Linux. >> > >> >I hope that somebody else would repeat the test and I have >> tried to make >> >it pretty easy for MS4W users. It should be enough to unzip >> the following >> >file into a directory \MS4W\map and then start running my WFS request >> >examples >> > >> >Test data (mapfile and a small shapefile) >> >http://latuviitta.org/documents/wfs_outputformat_test.zip >> > >> > >> > >> >GetCapabilities is OK for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=getcapabilities >> > >> >DescribeFeatureType is OK for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=describefeaturetype&typen >ame=wfs_polyg >> >ons >> > >> >GetFeature with default outputformat is OK for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_p >olygons&maxfe >> >atures=1 >> > >> >GetFeature with default outputformat is OK for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_p >olygons&maxfe >> >atures=1 >> > >> >GetFeature with CSV outputformat fails for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_p >olygons&maxfe >> >atures=1&outputformat=CSV >> > >> >GetFeature with SHAPEZIP outputformat fails for me >> >http://localhost/cgi-bin/mapserv.exe?map=/ms4w/map/mapserver6 >> 0_wfs_test.ma >> >p&service=wfs&version=1.0.0&request=getfeature&typename=wfs_p >olygons&maxfe >> >atures=1&outputformat=SHAPEZIP >> > >> > >> >Regards, >> > >> >-Jukka Rahkonen-_______________________________________________ >> >mapserver-users mailing list >> >[email protected] >> >http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ >mapserver-users mailing list >[email protected] >http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
