Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix dimension detection in postgres provider
  • Loading branch information
m-kuhn committed Aug 29, 2016
1 parent a529b44 commit 4a89b7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/providers/postgres/qgspostgresconn.cpp
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresconn.h
Expand Up @@ -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 );

Expand Down

0 comments on commit 4a89b7c

Please sign in to comment.