Nicolas, I don't think anything changed in terms mapnik2.render(). What may be 
happening is that your mapnik2 install did not get built with Cairo support. 
Try passing CAIRO=True as a command line option when building. 

--- \o/ ---
Sent from my phone

On Mar 28, 2011, at 11:10 PM, Nicolas Dumoulin 
<[email protected]> wrote:

> Hi,
> 
> With mapnik, I was drawing on cairo surface with such a code :
>  import cairo, math
>  surface = cairo.ImageSurface (cairo.FORMAT_ARGB32, imgx, imgy)
>  ctx = cairo.Context(surface)
>  mapnik.render(m, ctx)
> And then, I was able to add stuff to my surface.
> 
> But with mapnik2, the method render() has changed, and want an Image.
> But then, I can't find a way to get a cairo context for drawing my other 
> stuff.
> 
> How can I draw my map on a cairo surface with mapnik2?
> 
> Thanks
> 
> -- 
> Nicolas Dumoulin
> http://wiki.openstreetmap.org/wiki/User:NicolasDumoulin
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to