Skip to content
Permalink
Browse files

Allow usage of node tool for postgis zm geometries

  • Loading branch information
mhugent committed Jul 29, 2015
1 parent 00b8c1d commit 570620358430ceb52e995b866ea319a00c5a5b76
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/providers/postgres/qgspostgresprovider.cpp
@@ -2660,8 +2660,6 @@ bool QgsPostgresProvider::getGeometryDetails()
{
detectedType = result.PQgetvalue( 0, 0 );
detectedSrid = result.PQgetvalue( 0, 1 );
if ( result.PQgetvalue( 0, 2 ).toInt() == 4 )
mForce2d = true;
mSpatialColType = sctGeometry;
}
else
@@ -2878,7 +2876,7 @@ bool QgsPostgresProvider::getGeometryDetails()
// explicitly disable adding new features and editing of geometries
// as this would lead to corruption of measures
QgsMessageLog::logMessage( tr( "Editing and adding disabled for 2D+ layer (%1; %2)" ).arg( mGeometryColumn ).arg( mQuery ) );
mEnabledCapabilities &= ~( QgsVectorDataProvider::ChangeGeometries | QgsVectorDataProvider::AddFeatures );
mEnabledCapabilities &= ~( QgsVectorDataProvider::AddFeatures );
}

QgsDebugMsg( QString( "Feature type name is %1" ).arg( QGis::featureType( geometryType() ) ) );

0 comments on commit 5706203

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