Stefano Masera
2014-10-13 08:11:34 UTC
Hi list,
I wan't to set a square symbol in a point layer with python.
Currently, I use a graduated symbol legend, and I have a circle (point) symbol with this line for each item:
symbol = QgsSymbolV2.defaultSymbol(layer.geometryType())
But I want to set a square for one item.
How can I do?
Thanks,
Stefano
Stefano Masera
Arpa Piemonte - SC06 Dipartimento Provinciale di Torino
Via Pio VII, 9 - 10135 Torino
Tel.: 011 19680349; Fax: 011 19681441
www.arpa.piemonte.it
************************************************************************
Riservatezza/Confidentiality
In ottemperanza al D.Lgs. n. 196 del 30/06/03 in materia di protezione
dei dati personali, le informazioni contenute in questo messaggio sono
strettamente riservate ed esclusivamente indirizzate al destinatario
indicato (oppure alla persona responsabile di rimetterlo al
destinatario). Vogliate tener presente che qualsiasi uso, riproduzione o
divulgazione di questo messaggio sono vietati. Nel caso in aveste
ricevuto questo messaggio per errore, vogliate cortesemente avvertire il
mittente e distruggere il presente messaggio.
According to italian law D.lgs. 196/2003 concerning privacy, if you are
not the addressee (or responsible for delivery of the message to such
person) you are hereby notified that any disclosure, reproduction,
distribution or other dissemination or use of this communication is
strictly prohibited. If you have received this message in error, please
destroy it and notify us by email.
I wan't to set a square symbol in a point layer with python.
Currently, I use a graduated symbol legend, and I have a circle (point) symbol with this line for each item:
symbol = QgsSymbolV2.defaultSymbol(layer.geometryType())
But I want to set a square for one item.
How can I do?
Thanks,
Stefano
Stefano Masera
Arpa Piemonte - SC06 Dipartimento Provinciale di Torino
Via Pio VII, 9 - 10135 Torino
Tel.: 011 19680349; Fax: 011 19681441
www.arpa.piemonte.it
************************************************************************
Riservatezza/Confidentiality
In ottemperanza al D.Lgs. n. 196 del 30/06/03 in materia di protezione
dei dati personali, le informazioni contenute in questo messaggio sono
strettamente riservate ed esclusivamente indirizzate al destinatario
indicato (oppure alla persona responsabile di rimetterlo al
destinatario). Vogliate tener presente che qualsiasi uso, riproduzione o
divulgazione di questo messaggio sono vietati. Nel caso in aveste
ricevuto questo messaggio per errore, vogliate cortesemente avvertire il
mittente e distruggere il presente messaggio.
According to italian law D.lgs. 196/2003 concerning privacy, if you are
not the addressee (or responsible for delivery of the message to such
person) you are hereby notified that any disclosure, reproduction,
distribution or other dissemination or use of this communication is
strictly prohibited. If you have received this message in error, please
destroy it and notify us by email.