def makeFeature(self, geom, **properties):
     from mapnik2 import Feature
     f = Feature(self.ids.next())
     f.add_geometry(geom.wkb)
     for k,v in properties.iteritems():
         f[k] = v
     return f
Exemple #2
0
 def makeFeature(self, geom, **properties):
     from mapnik2 import Feature
     f = Feature(self.ids.next())
     f.add_geometry(geom.wkb)
     for k, v in properties.iteritems():
         f[k] = v
     return f
 def makeFeature(self, wkt, **properties):
     from mapnik2 import Feature
     f = Feature(self.ids.next())
     f.add_geometries_from_wkt(wkt)
     for k,v in properties.iteritems():
         f[k] = v
     return f
Exemple #4
0
 def makeOne(self, *args, **kw):
     from mapnik2 import Feature
     return Feature(*args, **kw)