Skip to content

Commit

Permalink
v.in.sos use yet existing columns
Browse files Browse the repository at this point in the history
  • Loading branch information
pesekon2 committed Aug 7, 2017
1 parent bc98deb commit 12a415a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v.in.sos/v.in.sos.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def create_maps(parsed_obs, offering, layer, new):
cols = [(u'cat', 'INTEGER PRIMARY KEY'), (u'name', 'VARCHAR')]
for a in data['features']:
for b in a['properties'].keys():
if b != 'name':
if b != 'name' and (u'%s' % b, 'DOUBLE') not in cols:
cols.append((u'%s' % b, 'DOUBLE'))

if len(cols) > 2000:
Expand Down

0 comments on commit 12a415a

Please sign in to comment.