5182 Commits

Author SHA1 Message Date
Nyall Dawson
16e98f205a Default to a dark gray instead of black for symbol outlines
Avoiding the very high constrast pure black results in cartographically
more pleasing styles, so it's nice to do this by default.

This should result in nicer looking maps being created in QGIS
when users don't do any manual style tweaks.
2018-02-02 15:59:13 +10:00
Alessandro Pasotti
0eeea76292
Merge pull request #6237 from elpaso/commas-dots-fieldvalidator
[bugfix][attrtable] Convert comma to dot for floating point input
2018-02-01 07:53:23 +01:00
Alessandro Pasotti
f3f0eb0035
Merge pull request #6236 from elpaso/double-linedit-default-widget
[bugfix] Lower priority of range widget for doubles
2018-02-01 07:53:04 +01:00
Nyall Dawson
247ea02ae7 Update tests 2018-02-01 13:02:59 +11:00
Nyall Dawson
6c5276cea5 Fix test 2018-02-01 13:02:59 +11:00
Nyall Dawson
6fa362b5a2 Fix value map search widget doesn't work for null/not null searches
before an initial value is picked

Refs #17986
2018-02-01 12:29:44 +11:00
Nyall Dawson
70fc32b784 Spelling 2018-02-01 07:53:54 +11:00
Nyall Dawson
fc68bb25d7 [processing] Allow case-different duplicate parameter names
But always prefer case-exact matches for parameter names. Turns
out the grass provider requires use of parameters with the same
name but different case, so we need to be able to handle this.
2018-02-01 07:53:54 +11:00
Alessandro Pasotti
cc1625c83e [bugfix][attrtable] Convert comma to dot for floating point input
This fixes an unreported bug that without detecting an
invalid input when using a comma as a decimal separator
silently converts the entered value to NULL.

Since locale support in QGIS is in its early stages
we convert commas to dots within the validator,
this is common practice in almost all web applications
where you can enter a comma instead of a dot and
the conversion appears while you digit.

This comes with brand new tests for QgsFieldValidator.

Bonus: small fix in sipify.
2018-01-31 12:50:14 +01:00
Alessandro Pasotti
2263237d20 Update test for editorwidgetregistry 2018-01-31 10:29:59 +01:00
Mathieu Pellerin
ad5a8697b6
Merge pull request #6140 from DelazJ/nodeEditor 2018-01-31 15:53:29 +07:00
Nyall Dawson
a9c6267332 Fix virtual layers using a where filter which has field names which
must be quoted

E.g. field names with special characters or which duplicate a
QGIS expression function name
2018-01-31 19:12:41 +11:00
Alessandro Pasotti
73293e8e9c
Merge pull request #6209 from elpaso/double-range-precision
[bugfix] Allow precision config for doubles in range widget
2018-01-31 08:32:20 +01:00
Nyall Dawson
6ec4d08272 [layouts] Correctly restore dpi from 2.x compositions 2018-01-31 16:46:12 +11:00
Harrissou Sant-anna
91a80759bf Fully replace node* by vertex* 2018-01-31 04:51:20 +01:00
Alessandro Pasotti
1194c78495
Merge pull request #6228 from elpaso/server-wfs-epsg-bbox
[server][bugfix][wfs] Allow CRS in BBOX
2018-01-30 17:56:34 +01:00
Alessandro Pasotti
26a51bada0 Strip timeStamp from reference XML for tests 2018-01-30 17:29:40 +01:00
Alessandro Pasotti
1f2109a51f [server][bugfix][wfs] Allow CRS in BBOX
Fixes #17977 - QGIS server 2.99 doesn't handles BBOX parameter on WFS request
2018-01-30 17:02:08 +01:00
Alessandro Pasotti
63d063f37d Update the tests with QgsField precision values
Now that they are honored
2018-01-30 09:07:45 +01:00
Mathieu Pellerin
eb42afed9b
add trandform context to QgsBearingUtils::bearingTrueNorth 2018-01-30 13:26:36 +07:00
Nyall Dawson
0a9f019f27 Indentation 2018-01-30 15:59:57 +10:00
Nyall Dawson
eba7e7b8b4 Fix QgsRasterFileWriter::driverForExtension and extensionsForFormat
were skipping non-creatable datasets

And indicate in the docs that read-only datasets are also considered
2018-01-30 12:19:28 +11:00
Nyall Dawson
f37c2bf6f6 Revert "[needs-qa]Usr bin env" 2018-01-30 11:33:49 +11:00
Denis Rouzaud
856442249c
Merge pull request #6072 from lbartoletti/usr_bin_env
[needs-qa]Usr bin env
2018-01-29 06:17:32 -09:00
Alessandro Pasotti
a420d0410a
Merge pull request #6185 from elpaso/bugfix-17878-range-widgets-nulls
[bugfix] Fix minimum values for range widgets
2018-01-29 13:15:40 +01:00
lbartoletti
1ce7dbad94 Merge branch 'master' of https://github.com/qgis/QGIS into usr_bin_env 2018-01-29 13:13:03 +01:00
Nyall Dawson
cf3014ccf2 Fix QgsPathResolver resolving older style relative links (without
any ./ or ../ prefix)
2018-01-29 20:51:36 +11:00
Alessandro Pasotti
d717a078fb [bugfix] Tests for double range widget limits 2018-01-29 10:44:58 +01:00
Blottiere Paul
aed6608095 Add test 2018-01-29 07:17:33 +00:00
Nyall Dawson
070e137c3d Update config format in search widget test 2018-01-29 17:36:37 +11:00
Nyall Dawson
234bc1a472 Fix value map widget broken when used as search widget
Fixes #17986
2018-01-29 17:36:37 +11:00
Nyall Dawson
fb8f3e9e4a [layouts] Fix restoration of rotated item positions
Fixes #17982
2018-01-29 12:25:53 +11:00
Juergen E. Fischer
7e20fe4cdc make converting to multi geometries to fullfil provider geometry
constraints the last step and use earlier conversions (fixes #17643)
2018-01-28 00:51:25 +01:00
Alessandro Pasotti
698befa9dd [gpkg] Add test for gpkg subsetstring don't unlock mutex twice
I wanted to add the test for gpkg subsetstring even if
it was not bugged, while testing that, I hit an assert
in Qt core that pointed me to double unlocked locks.
2018-01-25 15:16:53 +01:00
Alessandro Pasotti
cd0559dfde [bugfix][spatialite] Update extent when subsetstring is set in the ctor
Fixes #17863 - Zoom to layer has inconsistent behavior with filter
2018-01-25 14:38:34 +01:00
Alessandro Pasotti
e9c9b5dfb6 [bugfix][ogr] Update extent when subsetstring is set in the ctor
Fixes #17863 - Zoom to layer has inconsistent behavior with filter
2018-01-25 14:38:17 +01:00
Nyall Dawson
bf19eb6f35 [processing] Non-filed based outputs (e.g. postgis, geopackage)
options should be available for certain model outputs and script
algorithm outputs

We do this by swapping the test for non-file based output support
from checking only the algorithm's provider to instead checking
on a parameter-by-parameter basis.

This is done in order to support models. For models, depending
on what child algorithm a model output is based off, an individual
model may or may not have support for non-file based outputs. E.g
a model may generate outputs from a native qgis alg (supporting
these outputs) AND an output from a GDAL alg (with no support
for these outputs). In this case we need to enable or disable
the ui controls for non-file based outputs on an individual
output basis.

For scripts (for now) we blindly just say all outputs support
non-file based formats. This is going to be the case most of
the time, since scripts will usually be written using PyQGIS
API. For the exceptions (e.g. scripts which call other algs
like GDAL algs) we probably should add some way for the script
to indicate whether an individual output supports this, but
for now we just say they all do.

Fixes #17949
2018-01-25 15:47:42 +11:00
Nyall Dawson
975ef8e899 Show field type in tooltip in attribute table header 2018-01-25 11:35:54 +11:00
Juergen E. Fischer
8c96eec25e fix detection of 2.x project crs (followup f2b5a595) 2018-01-24 19:15:25 +01:00
Alessandro Pasotti
d3baac6e72
Merge pull request #6145 from elpaso/bugfix-17872-wfs2-typenames
[bugfix][wfs] Expand support for 2.0.0 TYPENAMES
2018-01-24 07:48:28 +01:00
Nyall Dawson
c41b2dd11c Don't re-register an already registered action in QgsShortcutsManager
Avoids incorrect warnings about duplicate shortcuts on startup.

What's happening here is:
- on QGIS startup, plugins are loaded, adding their actions to
the interface via iface.registerMainWindowAction()
- after ALL plugins and qgis native menus and actions are created,
the shortcut manager registers ALL children from the main window.
This includes the actions and widgets created by plugins, which
have already been registered to the manager.
- There's no way to avoid this duplicate registration - we could
move the child shortcut registration to occur before plugin
initialization, but it's actually nice to have this "catch-all"
occur after plugins are loaded (so that plugins which don't
correctly register actions still have them included in the shortcut
manager). Similarly, plugins MUST use the registerMainWindowAction
call instead of just relying on the Qt QAction.setShortcut method
because otherwise the shortcuts manager is unaware of actions
created after QGIS load - e.g. enabling a plugin after startup.

So we avoid this by just refusing to re-register a shortcut
that the manager is already aware of... no more startup warnings!
2018-01-24 11:38:07 +11:00
Denis Rouzaud
6a2a626926 move QgsCadUtils::lineCircleIntersection to QgsGeometryUtils
also add a test
2018-01-23 15:01:10 -09:00
Alessandro Pasotti
ccb4c80f8a [bugfix][wfs] Expand support for 2.0.0 TYPENAMES
Fixes #17872 - WFS 2.0.0 DescribeFeatureType : TypeNames vs TypeName

This PR introduces the plural form of TYPENAME for
2.0.0 WFS servers, with some additional logic to
allow for 2.0.0 servers that only support TYPENAME
for DescribeFeatureType: in this case, the singular
form is also tried in case the plural one fails.

There is still some work to do for transactional
support but at least the read-only client part
should now be ok.

Tests have been added to check that:

- TYPENAME form still works with old 2.0.0
- TYPENAMES form works with compliant 2.0.0
- choice geometry types are handled by calling
  GetFeature and examining the result
2018-01-23 18:51:14 +01:00
Mathieu Pellerin
dce341e152
[reports] allow header and footer sections to always be included 2018-01-23 20:08:14 +07:00
Nyall Dawson
c91fd5a067 [reports] Tweak sub-section logic for multi-layer reports
Instead of requiring a single layer for use with nested field group
sections, allow use of different layers. In this case the child
layers are filtered so that any fields with names matching their
parent groups are filtered to match the parent section's value.

Also only include headers and footers for child field group sections
if the child has matching features found.
2018-01-23 17:51:50 +11:00
Nyall Dawson
d415ad84c9 [processing] Fix extent and CRS parameters do not evaluate in
models when linked to a layer parameter/output value

References discussion on dev mailing list
2018-01-23 12:35:29 +11:00
Nyall Dawson
7a2ab1cc7c [layouts] Fix multiframe items (tables, html) cannot be pasted
Fixes #10456, #17882
2018-01-23 07:14:44 +11:00
Nyall Dawson
35a77013ca Fix handling of multiframe objects in layout templates 2018-01-23 07:14:44 +11:00
David
efe378d646 fixed indentation in python
fixed indentation in python unittest
2018-01-22 04:59:23 -09:00
David
2dba9fc807 take list instead of map for test
in unittest it needs to take a list instaed of the map as a test of valuemap
2018-01-22 04:59:23 -09:00