Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow usage of node tool for postgis zm geometries
  • Loading branch information
mhugent committed Jul 29, 2015
1 parent 00b8c1d commit 5706203
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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() ) ) );
Expand Down

0 comments on commit 5706203

Please sign in to comment.