[mapserver-users] Cannot get OGR output to work

Smith, Michael ERDC-CRREL-NH Michael.Smith at usace.army.mil
Fri Dec 16 10:30:07 EST 2011


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" <Jukka.Rahkonen at mmmtike.fi> 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:Michael.Smith at usace.army.mil]
>> Lähetetty: 16. joulukuuta 2011 17:12
>> Vastaanottaja: Rahkonen Jukka; 'mapserver-users at lists.osgeo.org'
>> 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"
>> <Jukka.Rahkonen at mmmtike.fi> 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
>> >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