Skip to content
Permalink
Browse files

Merge pull request #2457 from medspx/work_update_ogr_file_formats

[OGR Provider] update list of file formats that can be opened
  • Loading branch information
m-kuhn committed Nov 14, 2015
2 parents ee44bc8 + 56de17e commit 1be764a64f25b8fc38a00b6dcca864673f77978e
Showing with 101 additions and 0 deletions.
  1. +101 −0 src/providers/ogr/qgsogrprovider.cpp
@@ -1864,6 +1864,107 @@ QString createFilters( QString type )
myFileFilters += createFileFilter_( QObject::tr( "AutoCAD DXF" ), "*.dxf" );
myExtensions << "dxf";
}
else if ( driverName.startsWith( "ODS" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "Open Document Spreadsheet" ), "*.ods" );
myExtensions << "ods";
}
else if ( driverName.startsWith( "XLSX" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "MS Office Open XML spreadsheet" ), "*.xlsx" );
myExtensions << "xlsx";
}
else if ( driverName.endsWith( "XLS" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "MS Excel format" ), "*.xls" );
myExtensions << "xls";
}
else if ( driverName.startsWith( "EDIGEO" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "EDIGEO" ), "*.thf" );
myExtensions << "thf";
}
else if ( driverName.startsWith( "NAS" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "NAS - ALKIS" ), "*.xml" );
myExtensions << "xml";
}
else if ( driverName.startsWith( "WAsP" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "WAsP" ), "*.map" );
myExtensions << "map";
}
else if ( driverName.startsWith( "PCIDSK" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "PCI Geomatics Database File" ), "*.pix" );
myExtensions << "pix";
}
else if ( driverName.startsWith( "GPSTrackMaker" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "GPSTrackMaker" ), "*.gtm *.gtz" );
myExtensions << "gtm" << "gtz";
}
else if ( driverName.startsWith( "VFK" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "Czech Cadastral Exchange Data Format" ), "*.vfk" );
myExtensions << "vfk";
}
else if ( driverName.startsWith( "OSM" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "OpenStreetMap" ), "*.osm *.pbf" );
myExtensions << "osm" << "pbf";
}
else if ( driverName.startsWith( "SUA" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "Special Use Airspace Format" ), "*.sua" );
myExtensions << "sua";
}
else if ( driverName.startsWith( "OpenAir" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "OpenAir Special Use Airspace Format" ), "*.txt" );
myExtensions << "txt";
}
else if ( driverName.startsWith( "PDS" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "Planetary Data Systems TABLE" ), "*.xml" );
myExtensions << "xml";
}
else if ( driverName.startsWith( "HTF" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "Hydrographic Transfer Format" ), "*.htf" );
myExtensions << "htf";
}
else if ( driverName.startsWith( "SVG" ) )
{
myFileFilters += createFileFilter_(QObject::tr( "Scalable Vector Graphics" ), "*.svg" );
myExtensions << "svg";
}
else if ( driverName.startsWith( "ARCGEN" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "Arc/Info Generate" ), "*.gen" );
myExtensions << "gen";
}
else if ( driverName.startsWith( "SXF" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "Storage and eXchange Format" ), "*.sxf" );
myExtensions << "sxf";
}
else if ( driverName.startsWith( "PDF" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "Geospatial PDF" ), "*.pdf" );
myExtensions << "pdf";
}
else if ( driverName.startsWith( "SEGY" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "SEG-Y" ), "*.sgy *.segy" );
myExtensions << "sgy" << "segy";
}
else if ( driverName.startsWith( "SEGUKOOA" ) )
{
myFileFilters += createFileFilter_( QObject::tr( "SEG-P1" ), "*.seg *.seg1 *.sp1" );
myFileFilters += createFileFilter_( QObject::tr( "UKOOA P1/90" ), "*.uko *.ukooa" );
myExtensions << "seg" << "seg1" << "sp1" << "uko" << "ukooa";
}
else
{
// NOP, we don't know anything about the current driver

0 comments on commit 1be764a

Please sign in to comment.
You can’t perform that action at this time.