60497 Commits

Author SHA1 Message Date
Nyall Dawson
4a8259b7b8 Deprecation warnings for everyone!
Let's all join the fun and share workload
2020-02-08 15:17:47 +10:00
Nyall Dawson
06d4dee523 Prevent builds which utilise API deprecated in <= Qt 5.8
Ideally this would be at least 5.9 (the minimum Qt version supported),
but unfortunately the Qwt libraries utilise QString::null in public
headers which was deprecated in Qt 5.9.

I've got a feeling Qwt is going to be a pain point once again when
Qt6 rolls around...
2020-02-08 15:17:47 +10:00
Nyall Dawson
aad4e84438 Remove old Qt4 compatibility module 2020-02-08 15:17:47 +10: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
Alessandro Pasotti
a0723939fa
Merge pull request #34350 from elpaso/bugfix-gh34333-gpkg-fid-shifted
Fix FID real fields shifted when exported to GPKG
2020-02-07 19:19:05 +01:00
Paul Blottiere
f9c341b4d4
Merge pull request #34256 from pblottiere/server_level_exception
Raise log level of server exception
2020-02-07 11:03:54 +01:00
Paul Blottiere
ddaf839209
Merge pull request #33836 from kadas-albireo/serverbuild
Fix server mingw build
2020-02-07 11:03:12 +01:00
Alessandro Pasotti
b0fceeff32 Fix FID real fields shifted when exported to GPKG
Fixes #34333
2020-02-07 10:33:27 +01:00
Nyall Dawson
578616cf93 Port font marker away from deprecated API
Note: it's highly likely there's a bug here, and we should be
using the (tight)boundingRect of the string here instead of the
width/horizontalAdvance. But doing so changes the rendering position
of characters substantially, as it means that font markers are
properly centered on the actual character itself (otherwise
a character like '.' is not placed over the point itself, but
rather below it! iThat's the current behavior).

We could possibly handle this by only applying the improved
positioning to newly created font marker symbols, but that's
left for a follow-up work...
2020-02-07 19:19:55 +10:00
Nyall Dawson
3c89d2696e More test updates 2020-02-07 17:19:47 +10:00
Nyall Dawson
ca9a989c6f Test updates 2020-02-07 17:19: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
Nyall Dawson
f3c423417b Fix a warning when building on >= Qt 5.13 2020-02-07 14:35:36 +10:00
Nyall Dawson
51f4f032f6 [needs-docs] Add a recenter button to the GPS information panel
There's NO way to recenter the map on the GPS location, which is a
HUGE ux limitation in QGIS' GPS handling. This commit adds a new
"Recenter" button to the panel to allow users to jump right to
the current GPS position.
2020-02-07 12:11:18 +10:00
Julien Cabieces
9e540f07f5 don't let blank tile if wcs result bbox doesn't match the requested one 2020-02-07 10:02:27 +10:00
Julien Cabieces
dfdb9cf965 Fixes #33339 : don't display "no data received" message if WCS download has been canceled 2020-02-07 10:02:27 +10:00
Julien Cabieces
b75acc78a2 Fixes #31626 don't crash on oracle getFeature(id) with an invalid id 2020-02-07 09:11:14 +10:00
Nyall Dawson
167e0de65b Fix IN/NOT IN evaluation with very number like strings
Only allow evaluation of number-like strings as numbers when
we aren't comparing two strings (matches behavior with other
expression comparison functions like equals)

Fixes #34314
2020-02-07 09:05:45 +10:00
obrix
855789742f Handle correctly the unit type millimeter when exporting simple marker symbol to DXF.
The strategy is the same as the one used when exporting svg marker symbol, ie simply use the map unit scale factor to scale the marker.

Should fix #28854.
2020-02-07 09:04:02 +10:00
lbartoletti
927d10c7dc
Fix oriented minimum bounding box algorithm
Fixes #33532
2020-02-07 09:02:06 +10:00
rldhont
e66a1c778f
Merge pull request #34223 from rldhont/fix-read-sld-textsymbolizer-for-lines
[Bugfix] Read SLD TextSymbolizer for lines
2020-02-06 23:57:06 +01:00
Nyall Dawson
104a590592 Some very ugly ports away from deprecated Qt methods
There's no straightforward way to avoid the deprecated methods here, so we have to
copy Qt5's compatibility helpers. Ugly, but unavoidable.
2020-02-07 06:06:28 +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
Alessandro Pasotti
6bffe18af3 Fix row conditional formatting
Fixes #34122

The original implementation was storing the styles
in an hash keyed by the row number from the model
index, but that one changes when the table is reloaded.

By using feature id as a key instead, the style association
with the feature is maintained through sort/reload
operations.
2020-02-06 04:36:35 +10:00
Nyall Dawson
947fe8d54a Add an advanced settings key to allow disabling of the "pan distance"
message which shows in the status bar after a pan operation
2020-02-06 04:35:23 +10:00
Nyall Dawson
438f0fad39 Tweak GPS distance status bar message to work better on smaller screens 2020-02-06 04:34:53 +10:00
Nyall Dawson
dcd144798b Fix transform errors caused by GPS bearing update
The center was being double-transformed
2020-02-06 04:34:24 +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
Alessandro Pasotti
f8d863c3b6
Merge pull request #34309 from elpaso/bugfixgh-gh34259-filter-expression-with-errors
Fix test message from query builder on errors
2020-02-05 18:31:07 +01:00
Peter Petrik
e0615d4948 MDAL 0.5.0 2020-02-05 14:08:37 +01:00
Alessandro Pasotti
5d8c4f8337 Fix test message from query builder
Fixes #34259
2020-02-05 13:59:34 +01:00
Sandro Mani
674282658c Use portable qputenv/qunsetenv instead of platform specific setenv/_putenv_s 2020-02-05 13:28:57 +01:00
Alessandro Pasotti
2e766b6a47
Merge pull request #34270 from elpaso/bugfix-gh34269-pg-merge-features
Fix merge features with PG tables
2020-02-05 09:08:44 +01:00
Denis Rouzaud
4fb42ae68d
Merge pull request #34266 from 3nids/maplayeraction-multiple
Fix map layer actions rendering in attribute table
2020-02-05 09:07:53 +01:00
Denis Rouzaud
7e7def8e3a
Fix case
Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
2020-02-05 07:18:41 +01: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
Nyall Dawson
b5698cfb26 Fix excessive padding at bottom of attribute table filter section 2020-02-05 11:44:48 +10:00
Nyall Dawson
94ca809a62 Capitalization 2020-02-05 10:13:00 +10:00
Nyall Dawson
00c8618253 More qt deprecation warning fixes 2020-02-05 10:12:38 +10:00
Blottiere Paul
78109c6c87 Log with info level 2020-02-04 21:52:12 +01:00
lbartoletti
a4d8820d30 nyall's review 2020-02-05 05:00:06 +10:00
lbartoletti
6fe51c4207 Close vertex for line when editing. fixes #32359 [needs-docs] 2020-02-05 05:00:06 +10:00
Nyall Dawson
3d3e1a7d32 Fix more deprecation warnings 2020-02-05 04:56:52 +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
Alessandro Pasotti
9b99dababf Fix merge features with PG tables
Fixes #34269

By moving the refreshMergedValue() at the end of
createTableWidgetContents() we set the correct
behavior (skipped, manual etc.) after it has been
possibly changed to "manual" a few lines above.

The previous implementation was settings the values
to "skipped" then calling refreshMergedValue(), then
possibly changing to "manual" without refereshing
the merged values, this was the source of the issue.
2020-02-04 17:54:44 +01:00