serJD commited on
Commit
13e4e4a
·
verified ·
1 Parent(s): 52fdb48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -129,7 +129,11 @@ def mainFunc(STREAM_ID, SOURCE_BRANCH, TARGET_BRANCH, UUID_COL, ATTR_METADATA, K
129
  curUUid = objDict[UUID_COL]
130
  targetGeoRow = idMapper[curUUid]
131
  print(stream_dataTrg[targetGeoRow].__dict__.keys())
132
- datanew["@geometry"] = stream_dataTrg[targetGeoRow].__dict__["@geometry"]
 
 
 
 
133
  streamData_new.append(datanew)
134
 
135
  log["avg_attrRemoved"] = log["avg_attrRemoved"]/len(stream_data)
 
129
  curUUid = objDict[UUID_COL]
130
  targetGeoRow = idMapper[curUUid]
131
  print(stream_dataTrg[targetGeoRow].__dict__.keys())
132
+
133
+ try:
134
+ datanew["@geometry"] = stream_dataTrg[targetGeoRow].__dict__["@geometry"]
135
+ except:
136
+ datanew["@Geometry"] = stream_dataTrg[targetGeoRow].__dict__["@Geometry"]
137
  streamData_new.append(datanew)
138
 
139
  log["avg_attrRemoved"] = log["avg_attrRemoved"]/len(stream_data)