Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #36364 from rldhont/oracle-multi-geom-type
[Oracle] Force multi geometry type at layer level
  • Loading branch information
rldhont committed May 14, 2020
2 parents 262568e + 18cc098 commit 2b1107a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/providers/oracle/qgsoracleprovider.cpp
Expand Up @@ -78,6 +78,10 @@ QgsOracleProvider::QgsOracleProvider( QString const &uri, const ProviderOptions
mSqlWhereClause = mUri.sql();
mSrid = mUri.srid().toInt();
mRequestedGeomType = mUri.wkbType();
if ( QgsWkbTypes::isSingleType( mRequestedGeomType ) && QgsWkbTypes::geometryType( mRequestedGeomType ) != QgsWkbTypes::PointGeometry )
{
mRequestedGeomType = QgsWkbTypes::multiType( mRequestedGeomType );
}
mUseEstimatedMetadata = mUri.useEstimatedMetadata();
mIncludeGeoAttributes = mUri.hasParam( "includegeoattributes" ) ? mUri.param( "includegeoattributes" ) == "true" : false;

Expand Down

0 comments on commit 2b1107a

Please sign in to comment.