File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -2660,8 +2660,6 @@ bool QgsPostgresProvider::getGeometryDetails()
2660
2660
{
2661
2661
detectedType = result.PQgetvalue ( 0 , 0 );
2662
2662
detectedSrid = result.PQgetvalue ( 0 , 1 );
2663
- if ( result.PQgetvalue ( 0 , 2 ).toInt () == 4 )
2664
- mForce2d = true ;
2665
2663
mSpatialColType = sctGeometry;
2666
2664
}
2667
2665
else
@@ -2878,7 +2876,7 @@ bool QgsPostgresProvider::getGeometryDetails()
2878
2876
// explicitly disable adding new features and editing of geometries
2879
2877
// as this would lead to corruption of measures
2880
2878
QgsMessageLog::logMessage ( tr ( " Editing and adding disabled for 2D+ layer (%1; %2)" ).arg ( mGeometryColumn ).arg ( mQuery ) );
2881
- mEnabledCapabilities &= ~( QgsVectorDataProvider::ChangeGeometries | QgsVectorDataProvider:: AddFeatures );
2879
+ mEnabledCapabilities &= ~( QgsVectorDataProvider::AddFeatures );
2882
2880
}
2883
2881
2884
2882
QgsDebugMsg ( QString ( " Feature type name is %1" ).arg ( QGis::featureType ( geometryType () ) ) );
You can’t perform that action at this time.
0 commit comments