[Qgis-developer] Rendering a map in QgsComposition on Win 7 / 8

pgierski pgierski at o2.pl
Fri May 9 01:25:00 PDT 2014


Thanks, I've added your line to the code.

At the beggining nothing has changed, but I've opened a few different
projects to test and for some (2) of them rendering the map worked, but for
most of tested (5) not.

I've also commented the line you've provided and nothing changes (still
those 2 works, but majority not).

On Linux still everything works.

I guess maybe it's something with image caching?

Cheers, Przemysław Gierski.


Dnia 8 maja 2014 12:39 Nyall Dawson <nyall.dawson at gmail.com> napisał(a):

> On 8 May 2014 20:23, pgierski <pgierski at o2.pl> wrote:
> 
> >
> > composerMap = QgsComposerMap(c,
> > 14.7026,113.85,map_width_on_print_mm,map_height_on_print_mm)
> > composerMap.setFrameEnabled(True)
> > composerMap.setFrameOutlineWidth(0.5)
> > c.addItem(composerMap)
> 
> What if you try explicitly setting composerMap's extent here? ie,
> composerMap.setNewExtent(rect)
> 
> Nyall
> 


More information about the Qgis-developer mailing list