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]