Navigation Menu

Skip to content

Commit

Permalink
Add comment about possible pending bug in force2d need detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Santilli committed Mar 4, 2015
1 parent 3603ee0 commit d2d6813
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/providers/postgres/qgspostgresconn.cpp
Expand Up @@ -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 );

Expand Down Expand Up @@ -1307,7 +1311,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 );

Expand Down

0 comments on commit d2d6813

Please sign in to comment.