Skip to content

Commit c79c837

Browse files
committed
Fix class names to allow pickling support
1 parent d8a6e05 commit c79c837

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

mapnik/__init__.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def __init__(self, *args, **kwargs):
108108
Box2d.__init__(self, *args, **kwargs)
109109

110110

111-
class _Coord(Coord, _injector()):
111+
class Coord(_mapnik.Coord, _injector()):
112112
"""
113113
Represents a point with two coordinates (either lon/lat or x/y).
114114
@@ -183,7 +183,7 @@ def inverse(self, projection):
183183
return inverse_(self, projection)
184184

185185

186-
class _Box2d(Box2d, _injector()):
186+
class Box2d(_mapnik.Box2d, _injector()):
187187
"""
188188
Represents a spatial envelope (i.e. bounding box).
189189
@@ -238,7 +238,7 @@ def inverse(self, projection):
238238
return inverse_(self, projection)
239239

240240

241-
class _Projection(Projection, _injector()):
241+
class Projection(_mapnik.Projection, _injector()):
242242

243243
def __repr__(self):
244244
return "Projection('%s')" % self.params()
@@ -266,15 +266,15 @@ def inverse(self, obj):
266266
return inverse_(obj, self)
267267

268268

269-
class _Feature(Feature, _injector()):
269+
class Feature(_mapnik.Feature, _injector()):
270270
__geo_interface__ = property(lambda self: json.loads(self.to_geojson()))
271271

272272

273-
class _Geometry(Geometry, _injector()):
273+
class Geometry(_mapnik.Geometry, _injector()):
274274
__geo_interface__ = property(lambda self: json.loads(self.to_geojson()))
275275

276276

277-
class _Datasource(Datasource, _injector()):
277+
class Datasource(_mapnik.Datasource, _injector()):
278278

279279
def featureset(self, fields = None, variables = {}):
280280
query = Query(self.envelope())
@@ -291,13 +291,13 @@ def all_features(self, fields=None, variables={}):
291291
return self.__iter__(fields, variables)
292292

293293

294-
class _Color(Color, _injector()):
294+
class Color(_mapnik.Color, _injector()):
295295

296296
def __repr__(self):
297297
return "Color(R=%d,G=%d,B=%d,A=%d)" % (self.r, self.g, self.b, self.a)
298298

299299

300-
class _SymbolizerBase(SymbolizerBase, _injector()):
300+
class SymbolizerBase(_mapnik.SymbolizerBase, _injector()):
301301
# back compatibility
302302

303303
@property
@@ -804,7 +804,7 @@ def make_it(feat, idx):
804804
return itertools.imap(make_it, features, itertools.count(1))
805805

806806

807-
class _TextSymbolizer(TextSymbolizer, _injector()):
807+
class TextSymbolizer(_mapnik.TextSymbolizer, _injector()):
808808

809809
@property
810810
def name(self):

0 commit comments

Comments
 (0)