Package: pickLayer
PickLayerSet layer properties and options straight from map canvas. Activate layer by clicking
features on map.Originally created and maintained byenricoferinhttps://github.com/enricofer/pickLayer.Usage from other pluginsIt is possible to control SetActiveLayerTool programmatically using public methods
defined in Plugin-class.fromqgis.coreimportQgsPointXYfromqgis.utilsimportpluginssome_point=QgsPointXY(123,456)# Activates layer if features are found near given pointplugins["pickLayer"].set_active_layer_using_closest_feature(point_xy=some_point)# Activates layer with custom search radius (in map units)plugins["pickLayer"].set_active_layer_using_closest_feature(point_xy=some_point,search_radius=100)# Activates layer using subset of layers (expects layer ids)plugins["pickLayer"].set_active_layer_using_closest_feature(point_xy=some_point,search_layers=["layer-1","layer-2"])# Set search layers for set active layer map tool (expects layer ids)plugins["pickLayer"].set_search_layers_for_set_active_layer_tool_action(search_layers=["layer-1","layer-2"])# Reset search layers for set active layer map tool (will use all vector layers in project)plugins["pickLayer"].set_search_layers_for_set_active_layer_tool_action(search_layers=None)# Get action for e.g. defining shortcut key programmaticallyaction=plugins["pickLayer"].get_set_active_layer_tool_action()# action.do_something()DevelopmentRefer todevelopmentfor developing this QGIS3 plugin.LicenseThis plugin is licenced withGNU General Public License, version 3.
SeeLICENSEfor more information.CHANGELOG3.9.12- 2024-01-26Upgrade qgis_plugin_tools to version that supports subplugins3.9.11- 2023-11-03Release plugin to pypi as well for easier access for other plugins3.9.10- 2023-11-02Fix defining layers to search from for set active layer tool3.9.9- 2023-11-01Find most logical closest feature from nested features with set active layer toolAdd qgis-plugin-dev-tools entry point to aid development with other plugins3.9.8- 2023-09-12Fix: Include .qm translation files to the zip generated by release workflow action3.9.7- 2023-09-06update author email3.9.6- 2023-06-16fix plugin versioning3.9.5 - 2023-06-16fix layer order in set active layer tool3.9.4- 2023-02-08fix plugin packaging3.9.3- 2023-02-08update requirements to match qgis-plugin-dev-tools version3.9.2- 2023-02-08update qgis-plugin-dev-tools version in order to produce valid zip plugin3.9.1- 2023-02-07fix release workflow and create separate workflows for running tests and creating draft releasesset development.md up-to-date3.9.0 - 2023-01-27update icons (in order to increase distinguishability)remove qgis plugin tools git submodule and use it as python dependencyupdate python dependencies3.8.0 - 2022-12-14update iconsadd pre-commit hooks for markdown files' style checks and for checking that commit
messages follow conventionallow user to click on raster file without python error being launched3.7.0 - 2022-09-27add possibility to define layers to search from for set active layer tool3.6.0 - 2022-09-17add default shortcut for pick active layer action3.5.0 - 2022-07-19add finnish translations3.4.0 - 2022-06-29pick active by clicking now considers distance between same type of layersautomatically return to previous map tool after successfull use of set active layer tool3.3.0 - 2022-04-04adds a new tool to set active layer by clicking features on mapif multiple layers are found, active layer is chosen in this order: point layer, line
layer, polygon layer, other map layers3.2.0 - 2021-06-29perform spatial operation on selected featurefix bugs: custom actions, copying featuresreformat using black, isort and flake8refactor to use qgis_plugin_toolsadd CI and CD pipelines3.1.0 - 2018-07-05subtract geometry new featuremerge with geometry new featuremakeValid geometry new featurefeature highlighting3.0.0 - 2018-03-30code migration to QGIS32.3.0 - 2016-06-20attributes values in context submenu - with copy to clipboard of contentconfigure snapping options issue fixedcoords typo issue fixed2.2.0 - 2015-06-12issue picking on line feature fixed2.1.0 - 2015-05-15selected layer and feature infoscopy area and length to clipboardchange datasource issues fixed2.0.0 - 2014-11-03layer commands added:zoom to layerchange data source (experimental)feature commands added:zoom to featurecopy feature and paste geometries and attributesother commands:layer actions attached to context menu