Hello there,

Finally, I've a mapnik with cairo installed on my system (after a scons -c for 
forcing recompilation from scratch). But I've still an error:
Boost.Python.ArgumentError: Python argument types in
    mapnik2._mapnik2.render(instance, cairo.Context)
did not match C++ signature:
    render(mapnik::Map, PycairoContext*)
    render(mapnik::Map, PycairoContext*, unsigned int, unsigned int)
    render(mapnik::Map, PycairoSurface*)
    render(mapnik::Map, PycairoSurface*, unsigned int, unsigned int)
    render(mapnik::Map, mapnik::image_32 {lvalue})
    render(mapnik::Map, mapnik::image_32 {lvalue}, double)
    render(mapnik::Map, mapnik::image_32 {lvalue}, double, unsigned int)
    render(mapnik::Map, mapnik::image_32 {lvalue}, double, unsigned int, 
unsigned int)

My code is:
  import cairo
  surface = cairo.ImageSurface (cairo.FORMAT_ARGB32, imgx, imgy)
  ctx = cairo.Context(surface)
  mapnik2.render(m, ctx)

Do you see something wrong?

Thank you

-- 
Nicolas Dumoulin
http://wiki.openstreetmap.org/wiki/User:NicolasDumoulin
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to