Reputation
2,576
Top tag
Next privilege 3,000 Rep.
Cast close & reopen votes
Badges
2 9 30
Impact
~142k people reached

Jul
21
answered Styles not applied when using QgsMapRenderer
Jul
21
revised Styles not applied when using QgsMapRenderer
Fixed some code errors
Jul
21
comment Styles not applied when using QgsMapRenderer
Also added setCacheImage(None)
Jul
21
comment Styles not applied when using QgsMapRenderer
No... nothing changes.
Jul
21
reviewed Approve Create raster with grid cells values based on area covered by polygons
Jul
21
asked Styles not applied when using QgsMapRenderer
Jun
17
comment Is there a way to export the style, along with a shapefile, to a kml in QGIS?
Ups, sorry, i meant symbol layer option!
Jun
17
answered Is there a way to export the style, along with a shapefile, to a kml in QGIS?
May
22
asked pyqgis, features geometry type changes to unknown after copying to anoter layer
May
4
awarded  Notable Question
Apr
22
comment pyqgis - refreshing only QgsMapCanvasItems not the entire QgsMapCanvas
Well, it isn't really a solution. What i did was respond to scaleChanged event, setting a different refresh ratio each time. For example: 10 seconds if scale > 100000, 5 seconds if its < 50000,... One thing to point out also, is you should definitely use QgsMapCanvasItem(s) instead of vector layers, because if you dont, changing data in the layers causes refresh of the entire map canvas, and the map flickers.
Apr
21
comment pyqgis - refreshing only QgsMapCanvasItems not the entire QgsMapCanvas
In the end, i solved it by modifying the refresh rate based on the scale. A kind of a compromising solution
Apr
15
awarded  Popular Question
Apr
14
comment pyqgis - refreshing only QgsMapCanvasItems not the entire QgsMapCanvas
I actually think it is quite possible, that map canvas image is cached anyway, and isnt actually rerendered unless extents/scale of the canvas change. This means that by ignoring position updates when user pans or scrolls the map, it could be done... i ll investigate some more
Apr
14
reviewed Approve creating a random raster image using gdal
Apr
14
asked pyqgis - refreshing only QgsMapCanvasItems not the entire QgsMapCanvas
Apr
13
revised pyQGis scale based visibility problem
added 17 characters in body
Apr
13
answered pyQGis scale based visibility problem
Apr
13
comment pyQGis scale based visibility problem
Doing this... yields the same result both times - degrees: print self.map.mapUnits() self.map.mapRenderer().setDestinationCrs(QgsCoordinateReferenceSystem(32632)) print self.map.mapUnits()
Apr
13
comment pyQGis scale based visibility problem
Yes, the scale reported from the map canvas is the problem. If i set the scale range to a large enough number (order of e05 larger than it actually is), then the scale visibility style settings work as excpected!