fix CSV driver refs and config
This commit is contained in:
+2
-2
@@ -2,7 +2,7 @@ server:
|
||||
bind:
|
||||
host: localhost
|
||||
port: 5000
|
||||
url: http://geo.kralidis.ca/pygeoapi
|
||||
url: http://localhost:5000
|
||||
mimetype: application/json; charset=UTF-8
|
||||
encoding: utf-8
|
||||
language: en-US
|
||||
@@ -80,7 +80,7 @@ datasets:
|
||||
id_field: id
|
||||
geometry:
|
||||
x_field: long
|
||||
y_field: long
|
||||
y_field: lat
|
||||
|
||||
ne_110m_populated_places_simple:
|
||||
title: Populated Places
|
||||
|
||||
@@ -82,7 +82,7 @@ class CSVProvider(BaseProvider):
|
||||
LOGGER.debug('Slicing CSV rows')
|
||||
for row in itertools.islice(data_, startindex, startindex+limit):
|
||||
feature = {'type': 'Feature'}
|
||||
feature['ID'] = row.pop('id')
|
||||
feature['ID'] = row.pop(self.id_field)
|
||||
feature['geometry'] = {
|
||||
'type': 'Point',
|
||||
'coordinates': [
|
||||
|
||||
Reference in New Issue
Block a user