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 4, 2015
1 parent 3603ee0 commit d2d6813673a6a7da97dc47f8b5bc27f124326a62
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 );

@@ -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 );

0 comments on commit d2d6813

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