randomPoint__2430_comment_3.diff
python/plugins/fTools/tools/doRandPoints.py (working copy) | ||
---|---|---|
212 | 212 |
sFeat = QgsFeature() |
213 | 213 |
sGeom = QgsGeometry() |
214 | 214 |
sPoints = [] |
215 |
if design == "field":
|
|
215 |
if design == self.tr("field"):
|
|
216 | 216 |
for (i, attr) in sProvider.fields().iteritems(): |
217 |
if (unicode(numRand) == attr.name()): index = i #get input field index |
|
217 |
if (unicode(numRand) == attr.name()): |
|
218 |
index = i #get input field index |
|
219 |
break |
|
218 | 220 |
count = 10.00 |
219 | 221 |
add = 60.00 / sProvider.featureCount() |
220 | 222 |
while sProvider.nextFeature(sFeat): |