58789 Commits

Author SHA1 Message Date
Nyall Dawson
900a49131b Add a bit of tolerance to graduated symbol range resolving
If a value doesn't fall exactly within a range, then try to see
if it falls just outside of any ranges (within double precision
tolerance), to correctly handle double precision values coming
from different sources.

Fixes #27420
2019-11-11 17:51:49 +10:00
Nyall Dawson
e5ba779d61 Use real field type instead of a forced conversion through string
for OGR provider minimum/maximum/unique value retrieval

Avoids precision loss due to this string conversion, notably resulting
in graduated ranges which don't quite encompass the full range of
values present in a layer.

Fixes #32667, #27420
2019-11-11 17:51:49 +10:00
Nyall Dawson
06f36ddbe6 Cleanup duplicate code and add tests for graduated range resolving 2019-11-11 17:51:49 +10:00
Matthias Kuhn
0c4d1f7e2f Reenable test and fix compiler warnings 2019-11-11 08:44:41 +01:00
Matthias Kuhn
8611a375f6 Restore scale and context 2019-11-11 08:44:41 +01:00
Matthias Kuhn
9cd9bb966e Fix potential test crash 2019-11-11 08:44:41 +01:00
Matthias Kuhn
874eb35f56 More test cleanup 2019-11-11 08:44:41 +01:00
Matthias Kuhn
a208ea9eca Improve error reporting in tests 2019-11-11 08:44:41 +01:00
Matthias Kuhn
24f9228008 Add dxf test for dashed line and actual usage of symbol definitions 2019-11-11 08:44:41 +01:00
Matthias Kuhn
9d4da34609 Improve loops 2019-11-11 08:44:41 +01:00
Matthias Kuhn
6374f02e93 Decouple DXF rendering from the layers
This makes it possible to run dxf exports in a thread.
2019-11-11 08:44:41 +01:00
Matthias Kuhn
1aaa676a8e Fix variable name 2019-11-11 08:44:41 +01:00
Matthias Kuhn
632aca54c7 One single renderer job for dxf export
Because if we do multiple renderer runs, the symbol lookup no longer works as symbollayers are cloned.
2019-11-11 08:44:41 +01:00
Matthias Kuhn
00efcbf91f QgsDxfExport should not be copied 2019-11-11 08:44:41 +01:00
Nyall Dawson
5eeba90341 Update sip, fix use of old style enum 2019-11-11 17:17:22 +10:00
Alessandro Pasotti
8bd57ca19c Use QGIS version int in user agent header 2019-11-11 07:06:48 +01:00
root676
a6e8fb68b9 optimize fuzzify() by moving loops into virtual functions 2019-11-11 05:26:02 +10:00
root676
512ad54bf2 fix typos in helpstrings 2019-11-11 05:26:02 +10:00
root676
43236b3dc2 compress svg icons 2019-11-11 05:26:02 +10:00
root676
a418941c45 add myself to contributors 2019-11-11 05:26:02 +10:00
root676
ba63098508 format code 2019-11-11 05:26:02 +10:00
root676
d159014179 fix bugs in fuzzify() methods and create processing tests 2019-11-11 05:26:02 +10:00
root676
18ff21951a [feature][processing] add function pictograms for fuzzy logic functions to toolbox 2019-11-11 05:26:02 +10:00
root676
d3d0093096 [feature][processing] add first version of fuzzy logic raster algorithms to QGIS 2019-11-11 05:26:02 +10:00
Julien Cabieces
8e08909a10 set current view mode to attribute editor 2019-11-11 04:30:03 +10:00
myarjunar
102444b8ab address review and performance improvement 2019-11-11 04:28:49 +10:00
myarjunar
0ae511f1bd [geonode] a generic way to consume geonode api. fixes #31376 2019-11-11 04:28:49 +10:00
Matthias Kuhn
be121984bf Apparently sip doesn't like double QObject inheritance
If a list of objects (QList<QgsMapCanvasItem *>) is converted to a list of python objects, sip fails if items inherit from QObject.
Fix #32700
2019-11-11 04:12:47 +10:00
Matthias Kuhn
cb688cbbcc Revert "Remove SIP convert to subclass code for QgsRubberBand and QgsVertexMarker"
This reverts commit 4b014e6e84093fc59ce9ee085657161b56be189c.
2019-11-11 04:12:47 +10:00
Juergen E. Fischer
23e59c36a3 fix windows build 2019-11-10 14:50:40 +01:00
Alessandro Pasotti
7c722e28a5 Urlencode non ascii chars in User-Agent
Fixes #32740
2019-11-10 14:21:36 +01:00
Sandro Santilli
dda5771585 Fix loading of PostgreSQL geometry-less views
Closes #32523

Bug was introduced with commit bbdbca4

Thanks @elpaso for finding the root cause of it
2019-11-10 11:48:48 +01:00
Sandro Santilli
ea970d9ef1 Add test for extracting candidate primary keys from geometryless view 2019-11-10 11:48:48 +01:00
Nyall Dawson
6b82917715 [processing] Refine behavior of "Use filename as layer name" option to
always avoid using temporary file names, and then set this option as
enabled by default.

Also change the setting key so that existing users will also get the new
default value.

Fixes #32591
2019-11-09 20:07:55 +10:00
Alessandro Pasotti
8edfcf1d02
Merge pull request #32736 from elpaso/server-wfs3-schema
Server OAPIF: expose XML schema for collections
2019-11-09 07:48:57 +01:00
Alessandro Pasotti
8d9fd78c9c
Merge pull request #32743 from elpaso/bugfix-gh32716-pg-12-consrc
Fix PG 12 constraints check (provider side)
2019-11-09 07:46:13 +01:00
Alexander Bruy
9ab06a2481
Merge pull request #32626 from alexbruy/service-area
[processing] port service area algorithms to C++
2019-11-09 08:25:51 +02:00
Nyall Dawson
4b014e6e84 Remove SIP convert to subclass code for QgsRubberBand and QgsVertexMarker
These conversions just crash sip (woo. sip. yay. good times.). I can't find
any alternative approach which avoids this crash, so just remove the cast
to avoid the crash.

Fixes #32700
2019-11-09 13:43:37 +10:00
Nyall Dawson
cc80bb4af6 Extend temporary layer warning to include layers stored inside
a user's temporary folder, e.g. the "/tmp" folder on Linux

This can lead to irretrievable data loss.

Fixes #32582
2019-11-09 13:43:03 +10:00
Nyall Dawson
377848e2ad Add QgsMapLayer::isTemporary to test whether a map layer is temporary
These include memory layer provider layers, or layers physically
stored inside a user's temporary folder (e.g. /tmp)
2019-11-09 13:43:03 +10:00
lbartoletti
9e30319be7 [BUGFIX] Fix an hardcoded 'gpkg' extension in ProcessingConfig.py 2019-11-09 13:35:04 +10:00
Alessandro Pasotti
eb1f940cae Fix PG 12 constraints check (provider side)
Fixes #32716 in PG provider
2019-11-08 18:59:17 +01:00
rldhont
ebd4bb768a
Merge pull request #32730 from rldhont/fix-server-wfs-add-primary-keys-to-request-for-fid
[Bugfix][Server] WFS: Add primary keys to request to build Server Feature Id
2019-11-08 17:22:03 +01:00
Alessandro Pasotti
ce48a1a3f6 Server OAPIF: update conformance classes 2019-11-08 16:54:10 +01:00
Alessandro Pasotti
cadb7916b5 Server OAPIF: expose XML schema for collections
Also make sure links to parent paths end with /
2019-11-08 14:40:44 +01:00
Denis Rouzaud
9dbfb6a0e6
remove relative include (#32728) 2019-11-08 11:47:56 +01:00
Alexander Bruy
0799e3b58f cleanup Python remainings 2019-11-08 12:13:31 +02:00
rldhont
2a227fd214 Fix const 2019-11-08 10:40:59 +01:00
rldhont
49c0524e5b [Bugfix][Server] WFS: Add primary keys to request to build Server Feature Id 2019-11-08 10:34:03 +01:00
Alexander Bruy
020980d3b1 address comments 2019-11-08 11:04:05 +02:00