orcaomar / qgis_range_filters Goto Github PK
View Code? Open in Web Editor NEWA widget for doing range filtering of QGIS data from the legend area.
License: GNU General Public License v3.0
A widget for doing range filtering of QGIS data from the legend area.
License: GNU General Public License v3.0
@agiudiceandrea, @orcaomar: Finally, I remembered this and found the time to look closer into the matter.
My findings so far:
"fid" > 4.000000 AND "fid" < 34.000000 AND "artype" > 12.000000 AND "artype" < 60.000000 AND "areal" > 372.704900 AND "areal" < 74797.924700
Why is not delta_m2 included in the filter? It is included in the legend in the layers panel.Anyway, I find this legend widget very useful and would really like to se it included in QGIS. Any chances for that?
Originally posted by @9ls1 in #1 (comment)
Just what I was looking for.
Downloaded the plugin as a zip-file and installed it from zip in QGIS 3.24.2.
Added a polygon layer and added the the plugin to the legend-property, but it throws an error:
`An error has occurred while executing Python code:
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'
Traceback (most recent call last):
File "C:\Users/.../AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis_range_filters-master\data_layer_range_filter_widget.py", line 165, in createWidget
return DataLayerRangeFilterWidget(layer)
File "C:\Users/.../AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis_range_filters-master\data_layer_range_filter_widget.py", line 116, in init
self._add_slider(field.name())
File "C:\Users/.../AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis_range_filters-master\data_layer_range_filter_widget.py", line 133, in _add_slider
slider = RangeSlider(self, field_name, field_min, field_max)
File "C:\Users/.../AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis_range_filters-master\data_layer_range_filter_widget.py", line 38, in init
self.on_value_changed()
File "C:\Users/.../AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis_range_filters-master\data_layer_range_filter_widget.py", line 89, in on_value_changed
(start_actual_val, end_actual_val) = self._getStartEndValues()
File "C:\Users/.../AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis_range_filters-master\data_layer_range_filter_widget.py", line 76, in _getStartEndValues
start_actual_val = (start_slider_val/100.0) * (self.fmax - self.fmin) + self.fmin
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'`
Do you have any plans updating/supporting the plugin? Or have you asked QGIS to include such an option in the core version?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.