Opened 13 years ago

Closed 13 years ago

#4199 closed enhancement (fixed)

FGDB extension checking needs to allow zip

Reported by: msmitherdc Owned by: pramsey
Priority: normal Milestone: 1.9.0
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords: Filegdb, esri, gdb, vsizip, mapserver, ogr
Cc: warmerdam

Description

To allow for export using OGR FileGDB driver from MapServer, the extension zip needs to be added to the allowed extensions when creating a new FileGDB file. Since MapServer cannot deliver a whole directory, it uses the vsizip driver to create the gdb folder structure in a zip file which is then downloaded. Restricting FileGDB extensions to just .gdb prevents this.

MapServer Outputformat for FileGDB

OUTPUTFORMAT
  NAME "FileGDB"
  DRIVER "OGR/FileGDB"
  FORMATOPTION "STORAGE=filesystem"
  FORMATOPTION "FORM=zip"
  FORMATOPTION "FILENAME=result.gdb.zip"
 END

This patch adds zip to the allowed extensions on create.

Attachments (1)

fgdb_ext.patch (593 bytes ) - added by msmitherdc 13 years ago.
Add zip to allowed extensions on Create Layer

Download all attachments as: .zip

Change History (2)

by msmitherdc, 13 years ago

Attachment: fgdb_ext.patch added

Add zip to allowed extensions on Create Layer

comment:1 by Even Rouault, 13 years ago

Resolution: fixed
Status: newclosed

r22963 /trunk/gdal/ogr/ogrsf_frmts/filegdb/FGdbDriver.cpp: FileGDB: Allow .gdb.zip as extension in creation (to be able to return FGDB with MapServer OGR output) (#4199)

Note: See TracTickets for help on using tickets.