fix CSV driver refs and config

This commit is contained in:
Tom Kralidis
2018-05-20 20:18:17 -04:00
parent de2c530770
commit 0dfb9adc4b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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': [