Feature request #16290

Processing: warn user when units are in degrees

Added by Paolo Cavallini over 7 years ago. Updated over 6 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Processing/Core
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:24200

Description

It is very easy to get wrong when doing analyses if map units are in degrees (one common case: buffer > user type 100, meaning meters, and ends up with huge balloons covering the whole world).
To prevent this, CRS units could be used in the analysis dialog, maybe even in red/italic/bold when these are degrees.
See https://lists.osgeo.org/pipermail/qgis-developer/2017-March/047372.html for a discussion on this.

Associated revisions

Revision 6a262566
Added by Nyall Dawson over 6 years ago

[processing] Add dedicated "distance" parameter

This is a subclass of QgsProcessingParameterNumber, but specifically
for numeric parameters which represent distances. It is linked
to a parent parameter, from which the distance unit will
be determined, and is shown using a dedicated distance widget
within the processing parameters panel. This widget shows
the distance unit.

This avoids the confusion when running algorithms which
use distances where the unit depends on a layer or CRS parameter -
e.g. the distance parameter in the buffer algorithm gives
the distance in layer units... so now we can show those units
directly within the dialog. Hopefully this leads to less
user confusion and accidental "1000 degree buffers"!

Additionally - if the unit is in degrees, a small warning
icon is shown next to the parameter. The tooltip for this
icon advises users to reproject data into a suitable
projected local coordinate system.

Initially implemented for the native buffer and single
sided buffer algorithm only - but more will be added.

Fixes #16290

History

#1 Updated by Paolo Cavallini over 7 years ago

  • Subject changed from Processing: wanr user when units are in degrees to Processing: warn user when units are in degrees

#2 Updated by Giovanni Manghi over 7 years ago

  • Easy fix? set to No

#3 Updated by Paolo Cavallini over 6 years ago

  • Assignee deleted (Victor Olaya)
  • Description updated (diff)

Even more of a problem now that reprojection is done transparently to the user.

#4 Updated by Nyall Dawson over 6 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF