Skip to content

Commit

Permalink
More V2 drop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 30, 2017
1 parent e19f648 commit 271ef7c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsmaptooldeletering.cpp
Expand Up @@ -127,7 +127,7 @@ QgsGeometry QgsMapToolDeleteRing::ringUnderPoint( const QgsPointXY &p, QgsFeatur
QgsGeometry g;
QgsGeometry ringGeom;
QgsMultiPolygonXY pol;
QgsPolygonXYtempPol;
QgsPolygonXY tempPol;
QgsGeometry tempGeom;
double area = std::numeric_limits<double>::max();
while ( fit.nextFeature( f ) )
Expand Down Expand Up @@ -202,7 +202,7 @@ void QgsMapToolDeleteRing::deleteRing( QgsFeatureId fId, int beforeVertexNr, Qgs

int QgsMapToolDeleteRing::ringNumInPolygon( const QgsGeometry &g, int vertexNr )
{
QgsPolygonXYpolygon = g.asPolygon();
QgsPolygonXY polygon = g.asPolygon();
for ( int ring = 0; ring < polygon.count(); ring++ )
{
if ( vertexNr < polygon[ring].count() )
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolfillring.cpp
Expand Up @@ -216,7 +216,7 @@ QgsGeometry QgsMapToolFillRing::ringUnderPoint( const QgsPointXY &p, QgsFeatureI
{
for ( int j = 1; j < pol[i].size(); ++j )
{
QgsPolygonXYtempPol = QgsPolygonXY() << pol[i][j];
QgsPolygonXY tempPol = QgsPolygonXY() << pol[i][j];
QgsGeometry tempGeom = QgsGeometry::fromPolygon( tempPol );
if ( tempGeom.area() < area && tempGeom.contains( &p ) )
{
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptooloffsetcurve.cpp
Expand Up @@ -412,7 +412,7 @@ QgsGeometry QgsMapToolOffsetCurve::linestringFromPolygon( const QgsGeometry &fea

if ( geomType == QgsWkbTypes::Polygon || geomType == QgsWkbTypes::Polygon25D )
{
QgsPolygonXYpolygon = featureGeom.asPolygon();
QgsPolygonXY polygon = featureGeom.asPolygon();
multiPoly.append( polygon );
}
else if ( geomType == QgsWkbTypes::MultiPolygon || geomType == QgsWkbTypes::MultiPolygon25D )
Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsmaptoolselectutils.cpp
Expand Up @@ -182,12 +182,12 @@ QgsFeatureIds QgsMapToolSelectUtils::getMatchingFeatures( QgsMapCanvas *canvas,
{
// convert add more points to the edges of the rectangle
// improve transformation result
QgsPolygonXYpoly( selectGeomTrans.asPolygon() );
QgsPolygonXY poly( selectGeomTrans.asPolygon() );
if ( poly.size() == 1 && poly.at( 0 ).size() == 5 )
{
const QgsPolylineXY &ringIn = poly.at( 0 );

QgsPolygonXYnewpoly( 1 );
QgsPolygonXY newpoly( 1 );
newpoly[0].resize( 41 );
QgsPolylineXY &ringOut = newpoly[0];

Expand Down
4 changes: 2 additions & 2 deletions src/plugins/topology/topolTest.cpp
Expand Up @@ -636,7 +636,7 @@ ErrorList topolTest::checkGaps( double tolerance, QgsVectorLayer *layer1, QgsVec
QgsMultiPolygonXY polys = g1.asMultiPolygon();
for ( int m = 0; m < polys.count(); m++ )
{
QgsPolygonXYpolygon = polys[m];
QgsPolygonXY polygon = polys[m];

QgsGeometry polyGeom = QgsGeometry::fromPolygon( polygon );

Expand Down Expand Up @@ -980,7 +980,7 @@ ErrorList topolTest::checkSegmentLength( double tolerance, QgsVectorLayer *layer

QList<FeatureLayer>::iterator it;

QgsPolygonXYpol;
QgsPolygonXY pol;

QgsMultiPolygonXY mpol;
QgsPolylineXY segm;
Expand Down

0 comments on commit 271ef7c

Please sign in to comment.