Skip to content
Permalink
Browse files
synchronize eVis with latest changes in delimited text provider (fix #…
…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 48d7e85e9863bf80c3862ae171025ec2d5350c7c
Showing with 7 additions and 6 deletions.
  1. +7 −6 src/plugins/evis/databaseconnection/evisdatabaseconnectiongui.cpp
@@ -39,6 +39,7 @@
#include <QtXml/QDomDocument>
#include <QtXml/QDomElement>
#include <QtXml/QDomNode>
#include <QUrl>

/**
* Constructor
@@ -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( );
}
}

0 comments on commit 48d7e85

Please sign in to comment.