be more explicit about ctor kwargs for python datasource tests
This commit is contained in:
parent
600fed2bf5
commit
eba62d3c56
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue