Skip to content
Permalink
Browse files

fix #2202

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12343 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Dec 6, 2009
1 parent 4bc0811 commit 8006e3c2ebeb57ac158f528fd93fa433ffcf4c08
@@ -147,9 +147,9 @@ QStringList QgsBabelCommand::importCommand( const QString& babel,
else if ( *iter == "%type" )
copy.append( featuretype );
else if ( *iter == "%in" )
copy.append( input );
copy.append( QString("\"%1\"").arg( input ) );
else if ( *iter == "%out" )
copy.append( output );
copy.append( QString("\"%1\"").arg( output ) );
else
copy.append( *iter );
}
@@ -171,9 +171,9 @@ QStringList QgsBabelCommand::exportCommand( const QString& babel,
else if ( *iter == "%type" )
copy.append( featuretype );
else if ( *iter == "%in" )
copy.append( input );
copy.append( QString("\"%1\"").arg( input ) );
else if ( *iter == "%out" )
copy.append( output );
copy.append( QString("\"%1\"").arg( output ) );
else
copy.append( *iter );
}
@@ -58,9 +58,9 @@ QStringList QgsGPSDevice::importCommand( const QString& babel,
else if ( *iter == "%type" )
copy.append( type );
else if ( *iter == "%in" )
copy.append( in );
copy.append( QString( "\"%1\"").arg( in ) );
else if ( *iter == "%out" )
copy.append( out );
copy.append( QString( "\"%1\"").arg( out ) );
else
copy.append( *iter );
}
@@ -90,9 +90,9 @@ QStringList QgsGPSDevice::exportCommand( const QString& babel,
else if ( *iter == "%type" )
copy.append( type );
else if ( *iter == "%in" )
copy.append( in );
copy.append( QString("\"%1\"").arg( in ) );
else if ( *iter == "%out" )
copy.append( out );
copy.append( QString("\"%1\"").arg( out ) );
else
copy.append( *iter );
}
@@ -329,8 +329,8 @@ void QgsGPSPlugin::convertGPSFile( QString inputFileName,

// try to start the gpsbabel process
QStringList babelArgs;
babelArgs << mBabelPath << "-i" << "gpx" << "-f" << inputFileName
<< convertStrings << "-o" << "gpx" << "-F" << outputFileName;
babelArgs << mBabelPath << "-i" << "gpx" << "-f" << QString("\"%1\"").arg( inputFileName )
<< convertStrings << "-o" << "gpx" << "-F" << QString("\"%1\"").arg( outputFileName );
QgsDebugMsg( QString( "Conversion command: " ) + babelArgs.join( "|" ) );

QProcess babelProcess;

0 comments on commit 8006e3c

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