Skip to content
Permalink
Browse files

remove limitation on adding or editing geometry with Z coordinate

  • Loading branch information
troopa81 authored and nyalldawson committed Jan 3, 2020
1 parent d4e0c52 commit 31cdc2f1146c9b538d50809d650661ed0c061417
Showing with 0 additions and 12 deletions.
  1. +0 −12 src/providers/oracle/qgsoracleprovider.cpp
@@ -2628,18 +2628,6 @@ bool QgsOracleProvider::getGeometryDetails()
if ( !mValid )
return false;


// store whether the geometry includes measure value
if ( detectedType == QgsWkbTypes::Point25D || detectedType == QgsWkbTypes::MultiPoint25D ||
detectedType == QgsWkbTypes::LineString25D || detectedType == QgsWkbTypes::MultiLineString25D ||
detectedType == QgsWkbTypes::Polygon25D || detectedType == QgsWkbTypes::MultiPolygon25D )
{
// 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 );
}

QgsDebugMsg( QStringLiteral( "Feature type name is %1" ).arg( QgsWkbTypes::displayString( wkbType() ) ) );

return mValid;

0 comments on commit 31cdc2f

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