Skip to content
Permalink
Browse files

Fix dimension detection in postgres provider

  • Loading branch information
m-kuhn committed Aug 29, 2016
1 parent a529b44 commit 4a89b7c470829b7bc93cf5a657009e62470a2b14
Showing with 3 additions and 2 deletions.
  1. +2 −1 src/providers/postgres/qgspostgresconn.cpp
  2. +1 −1 src/providers/postgres/qgspostgresconn.h
@@ -1468,8 +1468,9 @@ void QgsPostgresConn::retrieveLayerTypes( QgsPostgresLayerProperty &layerPropert
}
}

void QgsPostgresConn::postgisWkbType( QgsWkbTypes::Type wkbType, QString &geometryType, int &dim )
void QgsPostgresConn::postgisWkbType( QgsWkbTypes::Type wkbType, QString& geometryType, int& dim )
{
dim = 2;
switch ( wkbType )
{
case QgsWkbTypes::Point25D:
@@ -318,7 +318,7 @@ class QgsPostgresConn : public QObject

static QString postgisWkbTypeName( QgsWkbTypes::Type wkbType );
static int postgisWkbTypeDim( QgsWkbTypes::Type wkbType );
static void postgisWkbType( QgsWkbTypes::Type wkbType, QString &geometryType, int &dim );
static void postgisWkbType( QgsWkbTypes::Type wkbType, QString& geometryType, int& dim );

static QString postgisTypeFilter( QString geomCol, QgsWkbTypes::Type wkbType, bool castToGeometry );

0 comments on commit 4a89b7c

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