Dane Springmeyer-4 wrote:
>
>
> On Jul 9, 2010, at 3:57 AM, feverzsj wrote:
>
> Yes, you can render to a mapnik.Image, then push that into a QImage.
>
> Here is a C++ example:
>
> http://trac.mapnik.org/browser/trunk/demo/viewer/mapwidget.cpp#L467
>
> And a python example:
>
> http://bitbucket.org/springmeyer/quantumnik/src/tip/quantumnik.py#cl-592
>
>
Thanks, seems really easy.
I also compiled the viewer in 0.7.1. When I loaded the xml of "World
Population" example, nothing happened at all. Both display area and
layers/styles display nothing. The shp path has been set to the absolute
path to the TM_WORLD_BORDERS_SIMPL_0.3_MOD.shp. And the python program ran
successfully.
external dependencies:
icu4c 4.4
freetype 2.3.5
libtool 1.5.26
boost 1.43.0
qt4.6.0
compiler: msvc8
--Regards, zsj
--
View this message in context:
http://old.nabble.com/How-to-render-to-other-drawing-surface--tp29113563p29135595.html
Sent from the Mapnik - Users mailing list archive at Nabble.com.
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users