Code Monkey home page Code Monkey logo

qgis_range_filters's People

Contributors

orcaomar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

qgis_range_filters's Issues

Various filter errors on a layer with multiple numeric types

@agiudiceandrea, @orcaomar: Finally, I remembered this and found the time to look closer into the matter.
My findings so far:

  1. A numeric field cannot have ALL their values equal to NULL (as @agiudiceandrea states in his/her comment).
  2. It seems like the maximum number of type numeric and integer fields is four. If I have more then four numeric fields I get the error message.
  3. The layer has 23 features. This gets narrowed down to 16 when adding the "Data Range Filter". Why?
  4. The slider "floors" the maximum value in the field? A polygon in my data set has the maximum value = 74797,9247. The slider's max. value (on the right side) shows 74797 resulting in the polygon not being visible (included).
  5. The layer has four numeric fields. However in the "Filter" I see only: "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.
  6. Removing the legend widget in a) Layers properties is not enough. One has to also b) clear the Filter. Shouldn't doing a) do the trick alone?

Anyway, I find this legend widget very useful and would really like to se it included in QGIS. Any chances for that?

Four numeric fields:
4numericfields

23 features:
23features_beforeslider

16 features filtered:
16features_afterslider

Originally posted by @9ls1 in #1 (comment)

The plugin fails in QGIS 3.24.2

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.