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@15676 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
alexbruy committed Apr 5, 2011
1 parent 45d5d87 commit b8f8349
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
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 b8f8349

Please sign in to comment.