Skip to content
Permalink
Browse files

Bug Fix: WFS layers added from the browser no longer prompt the user …

…for the layer coordinates system
  • Loading branch information
palmerj committed Jul 14, 2013
1 parent 838367e commit 0210b72d4542870acd689fb922daf817641b2ea6
Showing with 4 additions and 4 deletions.
  1. +3 −3 src/providers/wfs/qgswfsdataitems.cpp
  2. +1 −1 src/providers/wfs/qgswfsdataitems.h
@@ -24,10 +24,10 @@
#include <QCoreApplication>


QgsWFSLayerItem::QgsWFSLayerItem( QgsDataItem* parent, QString name, QgsDataSourceURI uri, QString featureType, QString title )
QgsWFSLayerItem::QgsWFSLayerItem( QgsDataItem* parent, QString name, QgsDataSourceURI uri, QString featureType, QString title, QString crsString )
: QgsLayerItem( parent, title, parent->path() + "/" + name, QString(), QgsLayerItem::Vector, "WFS" )
{
mUri = QgsWFSCapabilities( uri.encodedUri() ).uriGetFeature( featureType );
mUri = QgsWFSCapabilities( uri.encodedUri() ).uriGetFeature( featureType, crsString );
mPopulated = true;
mIcon = QgsApplication::getThemeIcon( "mIconWfs.svg" );
}
@@ -74,7 +74,7 @@ QVector<QgsDataItem*> QgsWFSConnectionItem::createChildren()
foreach ( const QgsWFSCapabilities::FeatureType& featureType, caps.featureTypes )
{
//QgsWFSLayerItem* layer = new QgsWFSLayerItem( this, mName, featureType.name, featureType.title );
QgsWFSLayerItem* layer = new QgsWFSLayerItem( this, mName, uri, featureType.name, featureType.title );
QgsWFSLayerItem* layer = new QgsWFSLayerItem( this, mName, uri, featureType.name, featureType.title, featureType.crslist.first() );
layers.append( layer );
}
}
@@ -69,7 +69,7 @@ class QgsWFSConnectionItem : public QgsDataCollectionItem
class QgsWFSLayerItem : public QgsLayerItem
{
public:
QgsWFSLayerItem( QgsDataItem* parent, QString name, QgsDataSourceURI uri, QString featureType, QString title );
QgsWFSLayerItem( QgsDataItem* parent, QString name, QgsDataSourceURI uri, QString featureType, QString title, QString crsString );
~QgsWFSLayerItem();

};

0 comments on commit 0210b72

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