Skip to content

Commit

Permalink
spelling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 25, 2017
1 parent a64f909 commit 958dff9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Expand Up @@ -24,19 +24,19 @@
feedback.setProgress(int(100 * n / count))
geom = feat.geometry()
if geom.isMultipart():
featres = feat
features = feat
geoms = geom.asGeometryCollection()
geomarea = [(i, geoms[i].area()) for i in range(len(geoms))]
geomarea.sort(key=itemgetter(1))
if To_keep == 1:
featres.setGeometry(geoms[geomarea[-1][0]])
features.setGeometry(geoms[geomarea[-1][0]])
elif To_keep > len(geoms):
featres.setGeometry(geom)
features.setGeometry(geom)
else:
featres.setGeometry(geom)
features.setGeometry(geom)
geomres = [geoms[i].asPolygon() for i, a in geomarea[-1 * To_keep:]]
featres.setGeometry(QgsGeometry.fromMultiPolygon(geomres))
writer.addFeature(featres)
features.setGeometry(QgsGeometry.fromMultiPolygon(geomres))
writer.addFeature(features)
else:
writer.addFeature(feat)

Expand Down
2 changes: 2 additions & 0 deletions scripts/spell_check/spelling.dat
Expand Up @@ -2899,9 +2899,11 @@ fanatism:fanaticism
Farenheit:Fahrenheit
fatc:fact
fatser:faster
fature:feature
faught:fought
favoutrable:favourable
feasable:feasible
featre:feature
featue:feature
featues:features
feauture:feature
Expand Down
2 changes: 1 addition & 1 deletion tests/src/providers/grass/testqgsgrassprovider.cpp
Expand Up @@ -62,7 +62,7 @@ class TestQgsGrassFeature : public QgsFeature
};

// Command which can be composed of more GRASS features, e.g. boundaries + centroid equivalent
// of simple fature polygon
// of simple feature polygon
class TestQgsGrassCommand
{
public:
Expand Down

0 comments on commit 958dff9

Please sign in to comment.