16589 Commits

Author SHA1 Message Date
Alessandro Pasotti
8cbb23cf09 Fix QgsPoint ctor with invalid arguments
Fixes #34557
2020-02-20 11:14:18 +01:00
Radoslaw Guzinski
8d1df2adb1 [Processing] Fix setting band parameter from string
Optional bool variables are in positions 5 and 6.
2020-02-20 09:32:07 +10:00
Harrissou Sant-anna
eb55d7555e Fix geometry type for "Convert geometry type" algorithm 2020-02-20 08:46:32 +10:00
Alessandro Pasotti
f71e04e579 SIP 2020-02-20 08:33:07 +10:00
Nyall Dawson
a5b6290361 Fix doxygen warning 2020-02-18 08:37:25 +10:00
Nyall Dawson
1e17e6979a Disable "Fallback" option when coordinate transforms are used in processing 2020-02-18 08:37:25 +10:00
Nyall Dawson
c1c1dc38b9 [needs-docs] Add setting to control whether the coordinate operation
for transformation between a source and destination CRS pair should
permit falling back to a ballpark transform when required

This defaults to true (i.e. similar-ish behavior to proj 4), but allows
users who require a specific coordinate operation the ability to prevent
any fallback ballpark transformations occurring
2020-02-18 08:37:25 +10:00
Nyall Dawson
d4d6f79b4f Fix interaction of QgsCoordinateTransform::setBallparkTransformsAreAppropriate
and setAllowFallbackTransforms and improve dox

setBallparkTransformsAreAppropriate overrules the setAllowFallbackTransforms
setting
2020-02-18 08:37:25 +10:00
Nyall Dawson
e3b1649fd3 Add API to QgsCoordinateTransform to control fallback availability
on a transform-by-transform basis, populate correctly from context
2020-02-18 08:37:25 +10:00
Nyall Dawson
61e6ab0ea8 Add API to QgsCoordinateTransformContext to prevent use of fallback
ballpark transforms for a source/dest CRS pair
2020-02-18 08:37:25 +10:00
Nyall Dawson
0b48f0a3f2 Add API for disabling fallback handler and for determining after a transform whether a fallback operation occurred 2020-02-18 08:37:25 +10:00
Nyall Dawson
8bb1c47de6 Add mechanism to disable user-visible warnings on use of fallback transforms
for a particular QgsCoordinateTransform object

This can be set for transforms where we definitively know that a "ballpark"
result is acceptable, e.g. when transforming global layer extents to
a localized area-of-use CRS

Refs #33929
2020-02-18 08:37:25 +10:00
Even Rouault
1f10509b86 Enable -Wnon-virtual-dtor in pedantic mode, and remove useless virtual qualifiers in 2 final classes 2020-02-17 08:07:48 +10:00
Matthias Kuhn
f33762a50f Fix invalid escape sequence
/usr/lib/python3/dist-packages/qgis/core/__init__.py:195

  /usr/lib/python3/dist-packages/qgis/core/__init__.py:195: DeprecationWarning: invalid escape sequence \s

    QgsProcessingUtils.LayerHint.Mesh.__doc__ = "Mesh layer type  \since QGIS 3.6"

/usr/lib/python3/dist-packages/qgis/core/additions/qgsfunction.py:167

  /usr/lib/python3/dist-packages/qgis/core/additions/qgsfunction.py:167: DeprecationWarning: invalid escape sequence \*
2020-02-17 08:07:14 +10:00
Denis Rouzaud
9441fcc947
drag'n'drop improvements part 3 (#34479)
* drag'n'drop improvements

part 3

this completely removes hidden config accessible under double click
now a widget groupbox (by opposition to the field config) is shown on top of the right panel
2020-02-14 23:19:42 +01:00
Nyall Dawson
756cb6f592 [layouts] Improve Manual Table handling of header cells
Instead of hiding this functionality from users, we instead add an explicit
toggle to the Table Designer dialog "Table" menu to hide or show
the header cells in the designer, and re-add the widgets which
allow users to customise the header appearance back into the
item configuration widget.

Whenever a header cell is selected in the table designer, the formatting
widgets are disabled since the item's header configuration widgets
are used to set the background/foreground color and other properties
of these cells instead.
2020-02-14 06:38:38 +10:00
Nyall Dawson
37a4c10a4d Fix broken browser directory paths
And improve documentation

Fixes #34169
2020-02-13 14:22:12 +10:00
nirvn
9ce12c0812 [vector file writer] Add coordinate transformation context to fix KML/GPX export 2020-02-13 07:50:34 +07:00
Nyall Dawson
5b639558f4 Dox++ 2020-02-13 09:32:02 +10:00
Radoslaw Guzinski
550c8bf341 [Processing] Fix isEnabled check for modeler context menu actions
This aligns the check with Processing scripts context menu actions and allows subclasses of QgsProcessingModelAlgorithm to register their own actions.
2020-02-13 08:39:44 +10:00
Denis Rouzaud
4980adbe19
QgsMapLayerAction: add legend context menu entry for action on selection (#34354)
A new menu entry (Actions on selection) is added to the layer tree context menu
It is shown only when required (layer has selection and actions can be run on the given layer)
2020-02-12 13:37:25 +01:00
Denis Rouzaud
181bfd4fb8
fix ownership issues in dualview/attributetable (#34403)
* fix ownership issues in dualview/attributetable

correctly fix #33120

* update dox + bindings
2020-02-11 20:49:19 +01:00
nirvn
3c64bbdcf9 Make QgsExifTools QML friendly 2020-02-09 12:20:20 +07:00
Nyall Dawson
9fb02d6ba7 Remove last traces of obsolete Qt4 API usage (from c++ -- may still be some in Python!) 2020-02-08 15:17:47 +10:00
Nyall Dawson
5566c5349d Fix deprecated api use in QgsDataDefinedSizeLegend, port away from ints to
make more layout export friendly
2020-02-07 17:19:47 +10:00
lbartoletti
927d10c7dc
Fix oriented minimum bounding box algorithm
Fixes #33532
2020-02-07 09:02:06 +10:00
Nyall Dawson
ff839a4456 [needs-docs][gps] Fix mouse cursor GPS distance display for touch screen devices
On touch screen devices, we can't show the GPS distance status bar message
as the cursor moves (because there's no "hover" mouse move events to trigger
this from). So for these devices, use a tap-and-hold event to trigger the
"current GPS distance from finger" status bar message.
2020-02-07 06:05:49 +10:00
Nyall Dawson
d2639bc662
Fix mention of compositions in dox (#34318) 2020-02-06 06:19:30 +01:00
Harrissou Sant-anna
224d6bc03f Add some missing dox and reference 2020-02-06 13:22:12 +10:00
Nyall Dawson
60d89ecc3a Fix clearing colors for selection of mixed color cells in table editor 2020-02-06 04:33:56 +10:00
Nyall Dawson
b8a12be5b7 Fix more qt deprecation warnings 2020-02-05 14:06:31 +10:00
Nyall Dawson
05c3186324 Fix outdated reference to GeoAlgorithmExecutionException in dox 2020-02-05 12:54:45 +10:00
lbartoletti
6fe51c4207 Close vertex for line when editing. fixes #32359 [needs-docs] 2020-02-05 05:00:06 +10:00
Nyall Dawson
692a14090b [needs-docs] Rename "Define layer projection" to "Define Shapefile projection"
This algorithm ONLY works on shapefile inputs, so make that clear in the algorithm's
display name and helper strings
2020-02-05 04:56:29 +10:00
Nyall Dawson
dae36b343e Remove qpj files when defining shp projection from processing and Proj >= build
is present

These files aren't/shouldn't be used under proj 6 builds
2020-02-05 04:56:29 +10:00
Nyall Dawson
f41dd11e92 [processing] Define Layer Projection tool should write .prj files
using WKT1 ESRI format, not GDAL

Fixes #34007
2020-02-05 04:56:29 +10:00
Matthias Kuhn
96a7fb8f5a
Merge pull request #34207 from strk/test-profile-temp
Set QGIS_CUSTOM_CONFIG_PATH to temporary dir for python tests
2020-02-04 08:57:46 +01:00
Nyall Dawson
fac99702b4 Show "Unknown CRS" entry in crs selector widget when the source CRS
of a layer or project is unknown

Because:
1. It clearly indicates that the current CRS for the object is unknown
2. It lets users see the full WKT/proj definition of the CRS, and allows
them to copy this definition
3. Avoids loss of CRS information when just opening and accepting the dialog

Refs #33458
2020-02-04 16:51:29 +10:00
Andrea Giudiceandrea
02a6fd40cd Fix "Random points along line" alg
Fixes "Random points along line" (qgis:randompointsalongline) algorithm.
See https://github.com/qgis/QGIS/issues/33156#issuecomment-581395400
2020-02-04 08:13:03 +10:00
Andrea Giudiceandrea
e82ba52584 Fix "Random points along line" alg
Fixes "Random points along line" (qgis:randompointsalongline) algorithm
Fixes #33156
2020-02-04 08:13:03 +10:00
Nyall Dawson
19d58bda08 Show full CRS WKT for custom CRS in layer properties
Fixes #33862
2020-02-03 18:55:05 +10:00
Sandro Santilli
c23a19793a Set QGIS_CUSTOM_CONFIG_PATH to temporary dir for python tests
Partially fixes #34185
See also #34187
2020-02-03 09:28:38 +01:00
Shiva Reddy
7583d52ef6 Modify Graphical Modeler title
The menu item and title of the dialogue is now same i.e Graphical Modeler
2020-02-03 05:51:16 +10:00
Nyall Dawson
06082a15c0 [processing] Improve temporary directory handling
- Make the new Temp Folder setting optional, default to an empty
string, and note that empty = use default
- Move responsibility for cleanup of temporary folders to c++ (if
Processing Python part crashes, or doesn't exist, then we still
want these cleaned up correctly)
2020-02-03 05:48:02 +10:00
Nyall Dawson
5ae9807303 [processing] Fix modeler draws lines to wrong output when connecting
the green output boxes back to their linked algorithms
2020-02-01 05:59:22 +10:00
Alessandro Pasotti
949efbd84e DB Manager: fix tests and minor cleanup 2020-01-31 13:35:29 +01:00
Alessandro Pasotti
a6e9050453 DB manager PG connection proper API usage
Fixes #34132
2020-01-31 10:47:28 +01:00
Nyall Dawson
3fb18a2260 [processing] Fix Points Along Geometry handling of multipart geometries
Fixes #34022
2020-01-31 14:46:33 +10:00
Nyall Dawson
d1d7dfe497 [processing] When listing available layer sources for an input in the
model designer, prefer to show the user's defined name for that output
instead of the generic one

Makes it easier to associate inputs with the correct outputs when
creating models
2020-01-31 07:33:44 +10:00
Radoslaw Guzinski
7771c6cea9 [processing] Looks for script algorithm files also in subfolders. 2020-01-30 08:48:54 +10:00