Skip to content
Permalink
Browse files

[Oracle] Force multi geometry type

Oracle DBMS can mix single and multi geometry type like ESRI ShapeFile.
So the geometry type has to be multi geometry type for requested one.
  • Loading branch information
rldhont committed May 11, 2020
1 parent 1435076 commit 18cc098b092094683b65cdf45e1fce62c869518f
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/providers/oracle/qgsoracleprovider.cpp
@@ -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;

0 comments on commit 18cc098

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