|
11 | 11 | # Copyright (C) 2008 Carson Farmer
|
12 | 12 | #
|
13 | 13 | # EMAIL: carson.farmer (at) gmail.com
|
14 |
| -# WEB : www.geog.uvic.ca/spar/carson |
| 14 | +# WEB : www.carsonfarmer.com/ |
15 | 15 | #
|
16 | 16 | #-----------------------------------------------------------
|
17 | 17 | #
|
@@ -47,7 +47,7 @@ class UnicodeWriter:
|
47 | 47 | A CSV writer which will write rows to CSV file "f",
|
48 | 48 | which is encoded in the given encoding.
|
49 | 49 | Taken from http://docs.python.org/library/csv.html
|
50 |
| - to allow handling of nonascii output |
| 50 | + to allow handling of non-ascii output |
51 | 51 | """
|
52 | 52 |
|
53 | 53 | def __init__(self, f, dialect=csv.excel, encoding="utf-8", **kwds):
|
@@ -134,7 +134,7 @@ def accept(self):
|
134 | 134 | elif self.rdoStandard.isChecked(): matType = "Standard"
|
135 | 135 | else: matType = "Summary"
|
136 | 136 | if self.chkNearest.isChecked(): nearest = self.spnNearest.value()
|
137 |
| - else: nearest = nearest = 0 |
| 137 | + else: nearest = 0 |
138 | 138 | if outPath.contains("\\"):
|
139 | 139 | outName = outPath.right((outPath.length() - outPath.lastIndexOf("\\")) - 1)
|
140 | 140 | else:
|
@@ -173,7 +173,7 @@ def compute(self, line1, line2, field1, field2, outPath, matType, nearest, progr
|
173 | 173 | sindex.insertFeature(inFeat)
|
174 | 174 | provider2.rewind()
|
175 | 175 | if nearest < 1: nearest = layer2.featureCount()
|
176 |
| - else: nearest = nearest + 1 |
| 176 | + else: nearest = nearest |
177 | 177 | index1 = provider1.fieldNameIndex(field1)
|
178 | 178 | index2 = provider2.fieldNameIndex(field2)
|
179 | 179 | sRs = provider1.crs()
|
|
0 commit comments