Skip to content

Commit 6fd879d

Browse files
author
Sandro Santilli
committed
Add comment about possible pending bug in force2d need detection
1 parent f512e87 commit 6fd879d

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

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

13071311
query += " FROM " + table;
13081312

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

13111315
QgsPostgresResult gresult = PQexec( query );
13121316

0 commit comments

Comments
 (0)