Skip to content
Permalink
Browse files

Add comment about possible pending bug in force2d need detection

  • Loading branch information
Sandro Santilli
Sandro Santilli committed Mar 3, 2015
1 parent f512e87 commit 6fd879d820709e37a43c5aaf8b39febb770e3bb3
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/providers/postgres/qgspostgresconn.cpp
@@ -469,6 +469,10 @@ bool QgsPostgresConn::getTableInfo( bool searchGeometryColumnsOnly, bool searchP
layerProperty.types = QList<QGis::WkbType>() << ( QgsPostgresConn::wkbTypeFromPostgis( type ) );
layerProperty.srids = QList<int>() << srid;
layerProperty.sql = "";
/* TODO: why not != 2 ?
* Also note the value is not necessarely trustworthy:
* http://trac.osgeo.org/postgis/ticket/3068
*/
layerProperty.force2d = dim == 4;
addColumnInfo( layerProperty, schemaName, tableName, isView );

@@ -1306,7 +1310,7 @@ void QgsPostgresConn::retrieveLayerTypes( QgsPostgresLayerProperty &layerPropert

query += " FROM " + table;

//QgsDebugMsg( "Retrieving geometry types: " + query );
//QgsDebugMsg( "Retrieving geometry types,srids and dims: " + query );

QgsPostgresResult gresult = PQexec( query );

0 comments on commit 6fd879d

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