Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
|
@@ -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 ) ) |
|
@@ -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() ) |
|
|
|
@@ -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 ) ) |
|
|
{ |
|
|
|
@@ -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 ) |
|
|
|
@@ -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]; |
|
|
|
|
|
|
@@ -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 ); |
|
|
|
|
@@ -980,7 +980,7 @@ ErrorList topolTest::checkSegmentLength( double tolerance, QgsVectorLayer *layer |
|
|
|
|
|
QList<FeatureLayer>::iterator it; |
|
|
|
|
|
QgsPolygonXYpol; |
|
|
QgsPolygonXY pol; |
|
|
|
|
|
QgsMultiPolygonXY mpol; |
|
|
QgsPolylineXY segm; |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.