Re: [gdal-dev] Multiple extensions in GDAL_DMD_EXTENSION ?

2013-02-21 Thread Oyvind Idland
Whoever comes up with an idea to directly drive his app GUI with a library such as GDAL should leave his desk, go fishing for as long as it takes him to come back with solution on his app side. Not sure what you mean by drive the app GUI here. I think the main point here is to get metadata

Re: [gdal-dev] Multiple extensions in GDAL_DMD_EXTENSION ?

2013-02-21 Thread Mateusz Loskot
On 20 February 2013 18:38, Ari Jolma ari.jo...@gmail.com wrote: Just the last few days I've worked on the support in the GUI for using the WMS and WFS drivers in GDAL. For WMS I made a completely new dialog box but for the WFS I added it into the Open vector data dialog - it already had

Re: [gdal-dev] Multiple extensions in GDAL_DMD_EXTENSION ?

2013-02-20 Thread Etienne Tourigny
On Tue, Feb 19, 2013 at 12:59 PM, Frank Warmerdam warmer...@pobox.com wrote: On Tue, Feb 19, 2013 at 9:39 AM, Etienne Tourigny etourigny@gmail.com wrote: It would be nice to be able to specify many extensions in a comma-separated list such as nc,cdf,nc4. It can probably be done (metadata

Re: [gdal-dev] Multiple extensions in GDAL_DMD_EXTENSION ?

2013-02-20 Thread Mateusz Loskot
On 20 February 2013 14:30, Etienne Tourigny etourigny@gmail.com wrote: On Tue, Feb 19, 2013 at 12:59 PM, Frank Warmerdam warmer...@pobox.com wrote: One other use that extensions are used for is to make it easy for a user to filter down files in a file browser to just one format. I can't

Re: [gdal-dev] Multiple extensions in GDAL_DMD_EXTENSION ?

2013-02-20 Thread Ari Jolma
On 02/20/2013 04:10 PM, Mateusz Loskot wrote: Whoever comes up with an idea to directly drive his app GUI with a library such as GDAL should leave his desk, go fishing for as long as it takes him to come back with solution on his app side. Mateusz, I've come up with this idea. However, I'm

Re: [gdal-dev] Multiple extensions in GDAL_DMD_EXTENSION ?

2013-02-20 Thread Frank Warmerdam
On Wed, Feb 20, 2013 at 6:30 AM, Etienne Tourigny etourigny@gmail.com wrote: Frank, thanks for you thorough response. I agree that GDAL's detection is rather efficient, but sometimes it can be relatively slow when scanning many files in a GUI. This is admittedly a worst-case scenario,

[gdal-dev] Multiple extensions in GDAL_DMD_EXTENSION ?

2013-02-19 Thread Oyvind Idland
Is it possible to specify multiple file extensions in GDAL_DMD_EXTENSION ? I ask because I am working on a driver for a format that has several known file extensions. - Oyvind ___ gdal-dev mailing list gdal-dev@lists.osgeo.org

Re: [gdal-dev] Multiple extensions in GDAL_DMD_EXTENSION ?

2013-02-19 Thread Frank Warmerdam
I am not aware of a way to list multiple extensions. Best regards, On Feb 19, 2013 2:15 AM, Oyvind Idland oyvind.idl...@gmail.com wrote: Is it possible to specify multiple file extensions in GDAL_DMD_EXTENSION ? I ask because I am working on a driver for a format that has several known file

Re: [gdal-dev] Multiple extensions in GDAL_DMD_EXTENSION ?

2013-02-19 Thread Etienne Tourigny
It would be nice to be able to specify many extensions in a comma-separated list such as nc,cdf,nc4. It can probably be done (metadata is just a string), but isn't standard. The Gdal driver tutorial states: GDAL_DMD_EXTENSION: The extension used for files of this type. If more than one pick the

Re: [gdal-dev] Multiple extensions in GDAL_DMD_EXTENSION ?

2013-02-19 Thread Oyvind Idland
For backward compability, an additional variable (eg. GDAL_DMD_EXTENSION_ALT or something like that) could be added with a specified format. - Oyvind On Tue, Feb 19, 2013 at 6:39 PM, Etienne Tourigny etourigny@gmail.comwrote: It would be nice to be able to specify many extensions in a

Re: [gdal-dev] Multiple extensions in GDAL_DMD_EXTENSION ?

2013-02-19 Thread Frank Warmerdam
On Tue, Feb 19, 2013 at 9:39 AM, Etienne Tourigny etourigny@gmail.com wrote: It would be nice to be able to specify many extensions in a comma-separated list such as nc,cdf,nc4. It can probably be done (metadata is just a string), but isn't standard. The Gdal driver tutorial states:

Re: [gdal-dev] Multiple extensions in GDAL_DMD_EXTENSION ?

2013-02-19 Thread Oyvind Idland
People *usually* want a list of extensions so they can automatically categorize the format of files on disk or to filter to only show extensions they think GDAL supports. I find this practice abhorrent! GDAL is based on the idea that file formats are discovered by inspecting file contents