I'm trying to calculate a field ('duplicates') to reflect the identical records, here's a part of the code:
d =  def isDuplicate(t): import string global d iD = 0 for item in d: if item == t: iD = 1 continue if iD == 1: return 1 elif iD == 0: d.append(t) return 0
I'm calling the function
isDuplicate() in the code below:
ogrinfo input.shp -dialect SQLite -sql "UPDATE input SET duplicates = isDuplicate('account_No')"
It doesn't output anything and it doesn't give any errors either. Can anyone see the problem?