[gdal-dev] Call for discussion on RFC 70: Guessing output format from output file name extension
Mark Johnson
mj10777 at googlemail.com
Fri Nov 10 01:05:47 PST 2017
Reading the Magic-Header signatures first and then guessing from the file
extension may be a better approach.
In spatialite gaia_exif.c, the function gaiaGuessBlobType has a collection
of signatures to start with, combined with spatialite.c guess_mime_type
returning the mime type as string.
//----------------------------------------------------------
// https://en.wikipedia.org/wiki/List_of_file_signatures
// https://gist.github.com/navinpai/983632
// https://www.iana.org/assignments/media-types/media-types.xhtml
//----------------------------------------------------------
Mark Johnson, Berlin Germany
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171110/84d38067/attachment.html>
More information about the gdal-dev
mailing list