[Qgis-user] QGIS 2.18 -Changing layer rule-based style transparency

2019-01-04 Thread Tudorache, Marian
Hi,

I have a polygon type vector layer with rule-based style.
I need to change programmatically the layer transparency.

I used the following code:
layer = iface.activeLayer()
layer.setTransparency(80)
layer.triggerRepaint()
This works only if I want to see layers which are under the active one but it 
does not work for the features inside active layer.

When there are identical polygons which overlap within active layer, I can only 
see the top one. If I select a polygon which is underneath it is not displayed 
as selected.
I can make it work if I manually open the layer style and double click on rule 
to open Rule properties and set the transparency for the rule.
How can I change the rule transparency programmatically?
Thank you,
Marian




This electronic message, as well as any transmitted files included in the 
electronic message, may contain privileged or confidential information and is 
intended solely for the use of the individual(s) or entity to which it is 
addressed. If you have received this electronic message in error please notify 
the sender immediately and delete the electronic message. Any unauthorized 
copying, disclosure or distribution of the electronic message is strictly 
forbidden. NAV CANADA accepts no liability for any damage caused by any virus 
and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent 
contenir des renseignements privilégiés ou confidentiels destinés à l’usage 
exclusif des personnes ou des organismes à qui ils s’adressent. Si vous avez 
reçu ce message électronique par erreur, veuillez en informer l’expéditeur 
immédiatement et supprimez le. Toute reproduction, divulgation ou distribution 
du présent message électronique est strictement interdite. NAV CANADA n’assume 
aucune responsabilité en cas de dommage causé par tout virus ou autre programme 
malveillant transmis par ce message électronique.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Creating PDF bookmarks in Atlas created by print composer?

2019-01-04 Thread magerlin
I am about to produce an Atlas in QGIS with 130 maps each showing one road.

It is created as an atlas in print composer and I have a label field in the
layout which includes the road name (from the coverage layer). I use single
file export to get one pdf document of 130 pages, all with identical layout.

I would love to make this document having PDF bookmarks leading to all the
road names for easy reference from the pdf bookmarks panel.

I can use html coding in the label but have still not found a solution on
how to get the bookmarks.

I have found one workaround in creating each map as a single pdf with the
name of the road. Then by merging all 130 pdf to one in PDFsam
(https://pdfsam.org/download-pdfsam-basic/) I can get bookmarks from the
filenames

Any ideas on how to do it directly from QGIS?



-
Regards Morten

Currently using Qgis 2.18.23 (OSGeo4) and Qgis 3.4.2 in parallel
Windows 7, 64bit
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user