[GRASS-dev] tickets to solve for GRASS 6.4.2 release
Markus Neteler
neteler at osgeo.org
Wed Aug 31 15:47:23 EDT 2011
On Wed, Aug 31, 2011 at 9:29 PM, Martin Landa <landa.martin at gmail.com> wrote:
> 2011/8/31 Martin Landa <landa.martin at gmail.com>:
>> 2011/8/31 Markus Neteler <neteler at osgeo.org>:
>>> On Wed, Aug 31, 2011 at 7:20 PM, Markus Metz
>>> <markus.metz.giswork at googlemail.com> wrote:
>>>> Regarding the import/link dialogs, I had a look at GdalImportDialog in
>>>> gdialogs.py. Maybe the easiest would be to replace the format selector
>>>> with a simple text field where the user can enter a file extension
>>>> which will then be used to filter files, plus a button to apply the
>>>> filter.
>>
>> I would not replace format selector, we can just add textctrl where
>> user can type alternative extension. Will do it.
>
> please try r48008 (devbr6).
>
> * choose directory mode
> * set directory name
> * set format
> * change extension, list of layer updated
Cool. I backported both r48007 and r48008 to my local 6.4 and it
works for me.
Small obstacle: some (many?) formats come with predefined extension,
others not. If that could be completely populated to have one default
extension per format, that would be perfect. I can help to populate the
list. Or just do that for those extensions not being delivered from GDAL? I am
not sure why some have a default extension and others not.
The list of default GDAL raster extensions is coded here:
grep GDAL_DMD_EXTENSION frmts/*/*.cpp
frmts/aaigrid/aaigriddataset.cpp: poDriver->SetMetadataItem(
GDAL_DMD_EXTENSION, "asc" );
frmts/adrg/adrgdataset.cpp: poDriver->SetMetadataItem(
GDAL_DMD_EXTENSION, "gen" );
frmts/adrg/srpdataset.cpp: poDriver->SetMetadataItem(
GDAL_DMD_EXTENSION, "img" );
...
and for OGR:
grep CPLGetExtension ogr/ogrsf_frmts/*/*.cpp | grep pszFilename
ogr/ogrsf_frmts/aeronavfaa/ograeronavfaadatasource.cpp:
!EQUAL(CPLGetExtension(pszFilename), "dat") )
ogr/ogrsf_frmts/bna/ogrbnadatasource.cpp: if( !(EQUAL(
CPLGetExtension(pszFilename), "bna" )
ogr/ogrsf_frmts/dwg/ogrdwgdatasource.cpp: if(
!EQUAL(CPLGetExtension(pszFilename),"dwg") )
...
Maybe not really helpful but to populate/check the list.
Markus
More information about the grass-dev
mailing list