[Qgis-community-team] Just to report some errors

Thielemanus St. Buijtenhek ts.buijtenhek at telfort.nl
Fri Sep 21 01:51:32 PDT 2012


Op dinsdag 18 september 2012 20:48:54 schreef Pedro Camargo:
> Hi,
> 
>                 I was looking into the python cookbook and I found some
> mistakes. I'm no programmer, so I don't know if my report is clear enough.
> Hope it is.
> 
> 
> 
> 
> 
> Here it is:
> 
> 
> 
> 
> 
> PAGE: http://www.qgis.org
> <http://www.qgis.org/pyqgis-cookbook/vector.html#graduated-symbol-renderer>
> /pyqgis-cookbook/vector.html#graduated-symbol-renderer
> 
> 
> 
> 
> 
> CODE SNIPPET 1
> 
> myTargetField = 'target_field'  #STRING, NOT LIST!!!!
> 
> 
> 
> 
> 
> 
> 
> CODE SNIPPET 2
> 
> mySymbol1 = QgsSymbolV2.defaultSymbol(
> 
>            myVectorLayer.geometryType())
> 
> mySymbol1.setColor(myColour)
> 
> mySymbol1.setAlpha(myOpacity)
> 
> 
> 
> 
> 
> CODE SNIPPET 3
> 
> mySymbol2 = QgsSymbolV2.defaultSymbol(
>            myVectorLayer.geometryType())
> mySymbol2.setColor(myColour)
> mySymbol2.setAlpha(myOpacity)
> 
> 
> 
> 
> 
> Soft/Environment
> 
> Python 2.7.3 (32 bits)
> 
> Windows 7 professional 64 Bits
> 
> QGIS 1.8.0 Lisboa
> 
> 
> 
> Pedro
> 
Dear Pedro,

Most likely this fault occurs because of your system. NEVER use a 32-bit app or distro in a 64-bit distro on a 64-bit 
system. You should install a 64-bit Python.

Hope this will help you.
Kind regards and success!

Theo Buijtenhek.


More information about the Qgis-community-team mailing list