Skip to content

Commit

Permalink
synchronize eVis with latest changes in delimited text provider (fix #…
Browse files Browse the repository at this point in the history
…3701)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15676 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
alexbruy committed Apr 5, 2011
1 parent b8d016c commit 48d7e85
Showing 1 changed file with 7 additions and 6 deletions.
Expand Up @@ -39,6 +39,7 @@
#include <QtXml/QDomDocument>
#include <QtXml/QDomElement>
#include <QtXml/QDomNode>
#include <QUrl>

/**
* Constructor
Expand Down Expand Up @@ -108,12 +109,12 @@ void eVisDatabaseConnectionGui::drawNewVectorLayer( QString layerName, QString x
//fileName is only available if the file is open
//the last file in the list is always the newest
mTempOutputFileList->last( )->open( );
QString uri = QString( "%1?delimiter=%2&xField=%3&yField=%4" )
.arg( mTempOutputFileList->last( )->fileName( ) )
.arg( "\t" )
.arg( xCoordinate )
.arg( yCoordinate );
emit drawVectorLayer( uri, layerName, "delimitedtext" );
QUrl url = QUrl::fromLocalFile( mTempOutputFileList->last()->fileName() );
url.addQueryItem( "delimiter", "\t" );
url.addQueryItem( "delimiterType", "regexp" );
url.addQueryItem( "xField", xCoordinate );
url.addQueryItem( "yField", yCoordinate );
emit drawVectorLayer( QString::fromAscii( url.toEncoded() ), layerName, "delimitedtext" );
mTempOutputFileList->last( )->close( );
}
}
Expand Down

0 comments on commit 48d7e85

Please sign in to comment.