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

Tim Sutton tim at linfiniti.com
Tue Sep 18 12:01:00 PDT 2012


Hi

On Tue, Sep 18, 2012 at 8:48 PM, Pedro Camargo <veigacamargo at gmail.com> wrote:
> 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/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)
>
>
>

Thanks, I fixed these with revision 4f83b5d the corrected version
should be visible online tomorrow.

Regards

Tim


>
>
> Soft/Environment
>
> Python 2.7.3 (32 bits)
>
> Windows 7 professional 64 Bits
>
> QGIS 1.8.0 Lisboa
>
>
>
> Pedro
>
>
> _______________________________________________
> Qgis-community-team mailing list
> Qgis-community-team at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-community-team
>



-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==============================================
Visit http://linfiniti.com to find out about:
 * QGIS programming services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting Services
Skype: timlinux Irc: timlinux on #qgis at freenode.net
==============================================


More information about the Qgis-community-team mailing list