Saturday, 24 November 2018

qgis 3 - Selecting only visible features from different layers using PyQGIS


I want to control whether features from different layers are visible. These features are in a list.


I found a script in qgis api but I can not use it:


if not renderer.capabilities().testFlag(QgsFeatureRenderer.Filter) or renderer.willRenderFeature(feature, context):

deal_with_my_feature()
else:
skip_the_curren_feature()


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...