Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/m/a/mapnik-utils-HEAD/trunk/nik2img/mapnik_utils/metaclass_injectors.py   mapnik-utils(Download)
    def transform(self,from_prj,to_prj):
        trans = mapnik.ProjTransform(from_prj,to_prj)
        return trans.forward(self)
 
class _Envelope(mapnik.Envelope,_injector):
    def transform(self,from_prj,to_prj):
        trans = mapnik.ProjTransform(from_prj,to_prj)
        return trans.forward(self)

src/n/i/nik2img-0.8.0/mapnik_utils/metaclass_injectors.py   nik2img(Download)
    def forward(self,from_prj,to_prj):
        trans = mapnik.ProjTransform(from_prj,to_prj)
        return trans.forward(self)
 
class _Box2d(mapnik.Box2d,_injector):
    def forward(self,from_prj,to_prj):
        trans = mapnik.ProjTransform(from_prj,to_prj)
        return trans.forward(self)