Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heatmap in percentage #17761

Closed
qgib opened this issue Nov 25, 2013 · 10 comments
Closed

Heatmap in percentage #17761

qgib opened this issue Nov 25, 2013 · 10 comments
Labels
API API improvement only, no visible user interface changes Feature Request
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Nov 25, 2013

Author Name: Paolo Cavallini (@pcav)
Original Redmine Issue: 9124

Redmine category:analysis_library


Heatmaps would be far more convenient (easier to interpret in many contexts) if they could (optionally) be expressed in % rather than in absolute values (in inverse values, so one could create isolines including, say, 95% probability). The change seems trivial:

  • calculate the maximum
  • dividing the raster values by that
  • adding an option to choose between absolute values and %

Also a note on the help on how to interpret cell values would make life easier for newbies.

@qgib
Copy link
Contributor Author

qgib commented Nov 26, 2013

Author Name: Nyall Dawson (@nyalldawson)


It's actually not quite that simple - the maximum value is not known until the entire heatmap is generated, it can't be calculated in advance.

The actual process would be:

  1. Generate the heatmap
  2. Scan for the max and min values within the heatmap (The minimum value would also need to be considered, since points could potentially have a negative weighting set resulting in raster values < 0)
  3. Update the cell values with a value relative to the max/min values

I'm wondering if it would be better/more flexible for this to be done via a step in a processing script. Problem is that heatmaps can't be generated via scripts at the moment - this would require moving the heatmap code from a c++ plugin to core (something which should be done at some time in any case). This is on my (distant) radar, alongside adding additional hotspot types such as Getis Ord Gi*. I'm hoping to get funding or some time of sponsorship to tackle this.

@qgib
Copy link
Contributor Author

qgib commented Nov 26, 2013

Author Name: Jürgen Fischer (@jef-n)


  • subject was changed from Heathmap in percentage to Heatmap in percentage

@qgib
Copy link
Contributor Author

qgib commented Nov 27, 2013

Author Name: Matthias Kuhn (@m-kuhn)


Alternative for moving to core:
We could add the possibility to expose a python API from C++ plugins as well. I could provide some code I have written for globe which does exactly this.

@qgib
Copy link
Contributor Author

qgib commented Jun 29, 2014

Author Name: Jürgen Fischer (@jef-n)


  • category_id was changed from C++ Plugins to 114

@qgib
Copy link
Contributor Author

qgib commented Jan 2, 2017

Author Name: Giovanni Manghi (@gioman)


  • category_id was changed from 114 to Analysis library

@qgib
Copy link
Contributor Author

qgib commented Jan 2, 2017

Author Name: Giovanni Manghi (@gioman)


  • fixed_version_id was configured as Version 3.0

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Feb 24, 2018

Author Name: Paolo Cavallini (@pcav)


Still true in QGIS 3


  • description was changed from Heatmaps would be far more convenient (easier to interpret in many contexts) if they could (optionally) be expressed in % rather than in absolute values (in inverse values, so one could create isolines including, say, 95% probability). The change seems trivial:
  • calculate the maximum
  • dividing the raster values by that
  • adding an option to choose between absolute values and %

Also a note on the help on how to interpret cell values would make life easier for newbies. to Heatmaps would be far more convenient (easier to interpret in many contexts) if they could (optionally) be expressed in % rather than in absolute values (in inverse values, so one could create isolines including, say, 95% probability). The change seems trivial:

  • calculate the maximum
  • dividing the raster values by that
  • adding an option to choose between absolute values and %

Also a note on the help on how to interpret cell values would make life easier for newbies.

@qgib
Copy link
Contributor Author

qgib commented Feb 24, 2018

Author Name: Nyall Dawson (@nyalldawson)


I think this should be closed, and replaced with a feature request for a processing algorithm which scales raster values to percent of max.

Heatmaps are part of processing now, so only the scaling algorithm is missing from this request.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Feb 25, 2018

Author Name: Paolo Cavallini (@pcav)


Fully agreed.


  • resolution was changed from to invalid
  • status_id was changed from Feedback to Rejected

@qgib qgib closed this as completed Feb 25, 2018
@qgib qgib added Feature Request API API improvement only, no visible user interface changes labels May 24, 2019
@qgib qgib added this to the Version 3.0 milestone May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API API improvement only, no visible user interface changes Feature Request
Projects
None yet
Development

No branches or pull requests

1 participant