Skip to content

Commit d2d6813

Browse files
author
Sandro Santilli
committed
Add comment about possible pending bug in force2d need detection
1 parent 3603ee0 commit d2d6813

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/providers/postgres/qgspostgresconn.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,10 @@ bool QgsPostgresConn::getTableInfo( bool searchGeometryColumnsOnly, bool searchP
469469
layerProperty.types = QList<QGis::WkbType>() << ( QgsPostgresConn::wkbTypeFromPostgis( type ) );
470470
layerProperty.srids = QList<int>() << srid;
471471
layerProperty.sql = "";
472+
/* TODO: why not != 2 ?
473+
* Also note the value is not necessarely trustworthy:
474+
* http://trac.osgeo.org/postgis/ticket/3068
475+
*/
472476
layerProperty.force2d = dim == 4;
473477
addColumnInfo( layerProperty, schemaName, tableName, isView );
474478

@@ -1307,7 +1311,7 @@ void QgsPostgresConn::retrieveLayerTypes( QgsPostgresLayerProperty &layerPropert
13071311

13081312
query += " FROM " + table;
13091313

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

13121316
QgsPostgresResult gresult = PQexec( query );
13131317

0 commit comments

Comments
 (0)