fix SQLite provider feature responses - Issue 41 (#45)

This commit is contained in:
Jorge Samuel Mendes de Jesus
2018-05-21 15:34:13 +02:00
committed by Tom Kralidis
parent 0dfb9adc4b
commit 893795c26d
+3 -1
View File
@@ -73,7 +73,9 @@ class SQLiteProvider(BaseProvider):
feature_list = list()
for row_data in self.dataDB:
row_data = dict(row_data) # sqlite3.Row is doesnt support pop
feature = {}
feature = {
'type': 'Feature'
}
feature["geometry"] = json.loads(
row_data.pop('AsGeoJSON(geometry)')
)