From ba1127ea57cd9fe2cd22cae0134e843d306007b3 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 28 Jul 2014 16:15:34 -0700 Subject: [PATCH] add (currently failing) test for #2319 --- tests/python_tests/csv_test.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/python_tests/csv_test.py b/tests/python_tests/csv_test.py index 644b9ef5e..4bdbed269 100644 --- a/tests/python_tests/csv_test.py +++ b/tests/python_tests/csv_test.py @@ -581,6 +581,15 @@ if 'csv' in mapnik.DatasourceCache.plugin_names(): eq_(b.maxx,180) eq_(b.maxy,90) + def test_inline_geojson(**kwargs): + csv_string = "geojson\n'{\"coordinates\":[-92.22568,38.59553],\"type\":\"Point\"}'" + ds = mapnik.Datasource(**{"type":"csv","inline":csv_string}) + eq_(len(ds.fields()),0) + eq_(ds.fields(),[]) + fs = ds.featureset() + feat = fs.next() + eq_(feat.num_geometries(),1) + if __name__ == "__main__": setup() [eval(run)(visual=True) for run in dir() if 'test_' in run]