45823 Commits

Author SHA1 Message Date
Alessandro Pasotti
9e79d8a7ad
Merge pull request #6320 from elpaso/try-to-fix-collapsible-crash-on-qt510
Try to fix QgsCollapsibleGroupBox crash on Qt 5.10
2018-02-12 12:40:37 +01:00
nirvn
4ada4989e5 [processing] automatically open results viewer panel when items added 2018-02-12 18:09:38 +07:00
nirvn
207a94738d [processing] offer hyperlink to file path in the results viewer
because users don't always get that there is a dbl-click action
against the tree view items.
2018-02-12 18:09:38 +07:00
Alessandro Pasotti
d4063e8b67 Try to fix QgsCollapsibleGroupBox crash on Qt 5.10
Automatic memory management: prevent button to be
deleted too early.
2018-02-12 11:52:03 +01:00
rldhont
a9d61ff508
Merge pull request #6285 from tudorbarascu/dpi
fix server issue for double devicePixelRatio leading to DPI requests with decimals
2018-02-12 11:26:18 +01:00
Martin Dobias
6096e5c25d Fix crash after running GDAL alg from processing (fixes #18004)
This was happening only with GDAL trunk

Processing first tries to load output as a vector, then as a raster
and output from raster algs would crash in OGR provider constructor
due to null pointer
2018-02-12 10:24:13 +01:00
Tudor Bărăscu
fbc6e4d11d add Server DPI test 2018-02-12 10:45:03 +02:00
Alexander Bruy
a7870afab1
Merge pull request #6303 from alexbruy/help-logging
log requested help URLs
2018-02-12 09:00:50 +02:00
nirvn
e5d7733bfc [processing] harmonize order of result panel (latest first) and add timestamp 2018-02-12 13:51:31 +07:00
nirvn
f10758e1b6 partial revert of 5dc91b4 to fix regression (fixes #18073)
setMaximumHeight() stays, so hopefully we are still protected
from infinit canvas redraw loop.
2018-02-12 10:13:14 +07:00
Nyall Dawson
5431a2dbae Fix crash when repairing zero length linestring geometry
Fixes #18077
2018-02-12 13:43:14 +11:00
Nyall Dawson
0eda77661f Fix loss of checkbox widget settings when a default expression is set
Fixes #18076
2018-02-12 13:42:50 +11:00
Nyall Dawson
efdaf5fc00
Merge pull request #6312 from nyalldawson/field_exp_null
Don't silently discard requests to set QgsFieldExpressionWidget to an empty expression
2018-02-12 13:29:32 +11:00
Nyall Dawson
ac28714a40 Fix data defined properties in cluster/displacement renderer
do not evaluate for isolated features

Fixes #18074
2018-02-12 12:56:03 +11:00
Nyall Dawson
9dca6da060 Don't silently discard requests to set QgsFieldExpressionWidget
to an empty expression

This causes issues in lots of places - e.g. a field constraint
is always set to the first field in a layer, and cannot be
removed.

I've looked at all calls to setField and without exception
they should accept that setting the field to an empty string
results in an empty expression.

Fixes #14325
2018-02-12 11:18:31 +10:00
Nyall Dawson
46d7a4280c
Merge pull request #6300 from nyalldawson/opts
Misc optimizations for everything
2018-02-12 11:14:46 +11:00
Nyall Dawson
24fb28f7bb Avoid unused expression context updates in more places 2018-02-12 09:04:57 +10:00
Nyall Dawson
e4ab1a6763 Don't generate symbol expression context scope when it's not
being used

Refs #17809
2018-02-12 09:04:57 +10:00
Nyall Dawson
180d878d80 Much more efficient QgsRectangle->QgsGeometry conversion 2018-02-12 09:04:56 +10:00
Nyall Dawson
b60489db49 More efficiency improvements for map to pixel simplification
Refs #17809
2018-02-12 09:04:56 +10:00
Nyall Dawson
db12f006d9 Avoid cloning in QgsGeometry::convertToMultiType where possible
Refs #17809
2018-02-12 09:04:56 +10:00
Nyall Dawson
c7e257efbb More efficient simplification of linestring geometries during rendering
Refs #17809
2018-02-12 09:04:56 +10:00
Nyall Dawson
ff7bb9aa53 Remove inefficient method for creating empty geometry of same
WKB type, and use optimized method instead

Refs #17809
2018-02-12 08:56:12 +10:00
Nyall Dawson
65827adc7d Provide an optimised constructor for a null QgsRectangle
This is used a lot, yet the current constructor calls the
normalize() method which does a bunch of operations for no
result.

So instead provide a simple optimised null QgsRectangle
constructor and save a lot of cycles.

Refs #17809
2018-02-12 08:56:12 +10:00
Denis Rouzaud
2cbcf74ef2
Merge pull request #6304 from 3nids/pg_domain
[postgres] fix domain not in public schema
2018-02-11 12:34:51 -09:00
Denis Rouzaud
bfe35c26ea [postgres] use pg_type rather than information_schema.domain_constraints to retrieve domain
otherwise there is no warranty to retrieve the correct constraint as its name is not unique
2018-02-11 17:29:18 -04:00
Alexander Bruy
c3a4b1170a
Merge pull request #6309 from alexbruy/processing-enums
[processing] add enums support for fields and feature source parameters
2018-02-11 14:40:33 +02:00
Alexander Bruy
178509347a [processing] add enums support for fields and feature source parameters
(follow up 068d74d5)
2018-02-11 14:05:09 +02:00
Alexander Bruy
52f83b3409 write to log when help location is not configured 2018-02-11 11:42:16 +02:00
Nyall Dawson
367aba1766
Merge pull request #6308 from nyalldawson/multi_out
[processing] Add explicit output type for multiple layers
2018-02-11 18:52:22 +11:00
Alexander Bruy
e20410a63c also log help "key" used to construct URI 2018-02-11 09:38:34 +02:00
Alexander Bruy
edcd2a186e fix typos 2018-02-11 09:38:34 +02:00
Alexander Bruy
f4094af6f9 add default help location to the global settings (refs #17670) 2018-02-11 09:38:34 +02:00
Alexander Bruy
a71912b074 log requested help URLs 2018-02-11 09:38:34 +02:00
Nyall Dawson
dd3ba34235 Fix ui build warning 2018-02-11 12:44:34 +11:00
Nyall Dawson
db9db58e71 Fix undefined behavior when closing layout designer 2018-02-11 12:44:34 +11:00
Nyall Dawson
414c3a4bfe Fix unavailable layer inputs for multi-layer inputs set to any map layer type 2018-02-11 11:00:49 +10:00
Nyall Dawson
54a99c27a3 [processing] Add multi layer outputs to Package Layers and Vector Split algorithms 2018-02-11 11:00:33 +10:00
Nyall Dawson
4bcc9df5b4 [processing] Add explicit output type for multiple layers
This was a missing capability in the processing API - while algorithms
could declare multiple layer input parameters, there was no corresponding
multi-layer output. This meant that algorithms (such as Package Layers,
Vector Split) which create a set of layers which cannot be determined
in advance had no way to pass these generated layers on for further model
processing steps.

It's also useful for algorithms which operate on a specified folder,
processing all layers found there, and allowing these generated
outputs to be utilised in other model steps (e.g. packaging
all of them, merging them, etc)
2018-02-11 10:57:44 +10:00
Denis Rouzaud
781b587090 add test for postgres domains 2018-02-10 15:27:06 -04:00
Denis Rouzaud
498e55186c [postgres] fix domain not in public schema
fix #18053
correctly set enumeration widget in case the domain is not in public schema
also fixes an issue if two domain with the same are present in two schemas
2018-02-10 15:26:29 -04:00
Salvatore Larosa
779fe1a91d set name to feature action when shortName is not available 2018-02-10 12:10:57 +01:00
Nyall Dawson
9ce02ce4cc Fix windows build warnings 2018-02-10 13:58:14 +11:00
Nyall Dawson
b6ad920404 Show stacktrace in debug when hitting a GEOS exception 2018-02-10 07:08:36 +11:00
Nyall Dawson
9dd81367ec Don't show group type layers in AFS source select
These layers cause an error if you try to add them to QGIS.

TODO: change source select to use a nested tree and correctly
add group layers as a parent for child layers.
2018-02-10 07:08:36 +11:00
Nyall Dawson
d229ec1fa1 Fix qt warning throw by AFS provider due to invalid QString arg usage
And make debug message about unsupported field types more useful
2018-02-10 07:08:36 +11:00
Nyall Dawson
8bb297d554 Fix layer id sorting in ArcGIS rest source select dialogs 2018-02-10 07:08:36 +11:00
Nyall Dawson
75d88afbb6 Quieten some overlay debug noisy methods 2018-02-10 07:08:36 +11:00
Alessandro Pasotti
e1876f5392
Merge pull request #6294 from elpaso/bugfix-17845-take2
[bugfix] Try harder to fix raster properties color picker
2018-02-09 12:23:20 +01:00
Alessandro Pasotti
6dbd0b950e [mxe] Better packaging and fix Qt5 plugins path 2018-02-09 12:06:36 +01:00