Skip to content
Permalink
Browse files
Fix build
  • Loading branch information
nyalldawson committed Nov 10, 2021
1 parent 74a4d10 commit 615e88d50710f6aa146a35f02b0d5ca1bea8fa8a
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/providers/oracle/qgsoracleprovider.cpp
@@ -1982,8 +1982,8 @@ void QgsOracleProvider::appendGeomParam( const QgsGeometry &geom, QSqlQuery &qry
// Oracle polygons must have their exterior ring in counterclockwise
// order, and the interior ring(s) in clockwise order.
const bool reverseRing =
iRing == 0 ? poly->exteriorRing()->orientation() == QgsCurve::Orientation::Clockwise :
poly->interiorRing( iRing - 1 )->orientation() == QgsCurve::Orientation::CounterClockwise;
iRing == 0 ? poly->exteriorRing()->orientation() == Qgis::AngularDirection::Clockwise :
poly->interiorRing( iRing - 1 )->orientation() == Qgis::AngularDirection::CounterClockwise;

const int n = *ptr.iPtr++;
if ( reverseRing )
@@ -2156,8 +2156,8 @@ void QgsOracleProvider::appendGeomParam( const QgsGeometry &geom, QSqlQuery &qry
// Oracle polygons must have their exterior ring in counterclockwise
// order, and the interior ring(s) in clockwise order.
const bool reverseRing =
iRing == 0 ? ring->orientation() == QgsCurve::Orientation::Clockwise :
ring->orientation() == QgsCurve::Orientation::CounterClockwise;
iRing == 0 ? ring->orientation() == Qgis::AngularDirection::Clockwise :
ring->orientation() == Qgis::AngularDirection::CounterClockwise;
std::unique_ptr<QgsCurve> reversedRing( reverseRing ? ring->reversed() : nullptr );
const QgsCurve *correctedRing = reversedRing ? reversedRing.get() : ring;
const QgsCompoundCurve *compound = dynamic_cast<const QgsCompoundCurve *>( correctedRing );

0 comments on commit 615e88d

Please sign in to comment.