diff --git a/tests/python_tests/python_plugin_test.py b/tests/python_tests/python_plugin_test.py index 1b5b3f5a8..a4f0677d5 100644 --- a/tests/python_tests/python_plugin_test.py +++ b/tests/python_tests/python_plugin_test.py @@ -16,7 +16,9 @@ def setup(): class PointDatasource(mapnik.PythonDatasource): def __init__(self): super(PointDatasource, self).__init__( - envelope = mapnik.Box2d(0,-10,100,110) + geometry_type = mapnik.DataGeometryType.Point, + envelope = mapnik.Box2d(0,-10,100,110), + data_type = mapnik.DataType.Vector ) def features(self, query): @@ -74,7 +76,9 @@ class ConcentricCircles(object): class CirclesDatasource(mapnik.PythonDatasource): def __init__(self, centre_x=-20, centre_y=0, step=10): super(CirclesDatasource, self).__init__( - geometry_type=mapnik.DataGeometryType.Polygon + geometry_type = mapnik.DataGeometryType.Polygon, + envelope = mapnik.Box2d(-180, -90, 180, 90), + data_type = mapnik.DataType.Vector ) # note that the plugin loader will set all arguments to strings and will not try to parse them