45435 Commits

Author SHA1 Message Date
nirvn
5f5f1f9c05 [processing] don't modify output filename in build virtual raster 2018-01-24 18:18:32 +07:00
nirvn
746701bf33 [processing] add default extension to empty filter when available 2018-01-24 18:18:32 +07:00
Etienne Trimaille
c871e84e36 update XSD and XML according to #36bf093 2018-01-24 21:28:46 +11:00
Nyall Dawson
36bf093b85 Fix metadata address element doubles with each project write
elementsByTagName can be dangerous, because it returns children
recursively. In this case the contact "address" element contained
a child element for the street address, also named "address".

So when restoring a project with contact addresses in the metadata,
each address was created twice...

Fixes #17940
2018-01-24 19:59:10 +11:00
Alessandro Pasotti
5812934c69 [bugfix] Fix crash on bad raster layers, fixes #17938 2018-01-24 09:44:06 +01:00
Nyall Dawson
097a437af8 [processing] Fix missing outputs in modeler for grass algs (fixes #17703) 2018-01-24 19:00:58 +11:00
Nyall Dawson
4e6aa3c359 [processing] Fix error on win when grass path isn't set correctly 2018-01-24 19:00:58 +11:00
Nyall Dawson
2013725793 Fix gui handling of NULL/None default values in processing script algorithms 2018-01-24 17:54:47 +11:00
Nyall Dawson
be959628e5 Fix crashes in layout manager tests 2018-01-24 17:50:31 +11:00
Nyall Dawson
b8880d46cd [layouts] Handle duplicated composer names when upgrading 2.x
projects

Somehow 2.x projects could end up with compositions with duplicate
names. This is strictly forbidden in 3.x, so we autogenerate a
new unique name if we encounter any duplicate composer names when
upgrading a 2.x project.

Fixes #17924
2018-01-24 17:50:31 +11:00
Nyall Dawson
c1f0657036 Fix leak when a layout cannot be added 2018-01-24 17:50:31 +11:00
Nyall Dawson
6eed7dea05 [layouts] Fix remaining composers are not restored after hitting
a composer which could not be added

Refs #17924
2018-01-24 17:50:31 +11: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
Mathieu Pellerin
c5d9830db2
[needs-docs][processing] move providers actions into the processing
panel toolbar (#6150)
2018-01-24 13:24:44 +07:00
Alexander Bruy
5dc8c3f0a2
Merge pull request #6141 from alexbruy/processing-gdal
[processing] restore GDAL rasterize algorithm
2018-01-24 08:16:01 +02:00
Nyall Dawson
54f9846eda Fix executing processing scripts through script editor 2018-01-24 15:53:33 +11:00
Denis Rouzaud
0cc29569f5 reformulate doxymentation 2018-01-23 21:28:00 -04:00
Nyall Dawson
d60f00dc85 [processing] Add Toolbox action to the main window toolbar
I realise this adds another toolbar button... but I'd strongly
argue that the toolbox is used FAR FAR more often than many of the
other toolbar actions!
2018-01-24 11:38:07 +11: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
Nyall Dawson
63db1be890 [processing] Improve main window Toolbox action
Brings the behaviour into line with the styling dock, where
the action is checkable and checked only when the toolbox
is open AND user visible (i.e. not hidden behind another tab). If
the toolbox is open but hidden, then hitting the Toolbox action
brings it to the front tab.

Otherwise it's often necessary to hit to Toolbox shortcut twice -
once to close a hidden toolbox tab, and a second time to open
and raise it.
2018-01-24 11:38:07 +11:00
Nyall Dawson
e5d00a26ab
Merge pull request #6147 from slarosa/processing_toolbar
[processing][needs-docs] add toolbar to processing toolbox
2018-01-24 11:35:39 +11:00
Denis Rouzaud
6a2a626926 move QgsCadUtils::lineCircleIntersection to QgsGeometryUtils
also add a test
2018-01-23 15:01:10 -09:00
Salvatore Larosa
b49c3964bb [processing] set icon size to toolbar 2018-01-23 23:39:02 +01:00
Salvatore Larosa
36768aad88 [processing] change icon for options action in toolbar 2018-01-23 23:16:01 +01:00
Salvatore Larosa
eb8a810ddf [processing] followup: 9c400324e2 - restore ellipses in menu actions 2018-01-23 23:13:13 +01:00
Salvatore Larosa
9c400324e2 [processing] add toolbar to toolbox 2018-01-23 22:30:29 +01: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
Denis Rouzaud
3b0afb2635 fix Project Snapping Settings dialog doesn't save the dialog size
fix #17343
2018-01-23 06:43:34 -09:00
Denis Rouzaud
649b5ee4df fix case 2018-01-23 06:43:34 -09:00
Denis Rouzaud
4d41dfbfe8 topological editing should always be available
fix #17620
regression from 2.x
2018-01-23 06:43:34 -09:00
Denis Rouzaud
4d1f7ede8a correctly register shortcuts for snapping toolbar
fix #17037
2018-01-23 06:43:34 -09:00
Mathieu Pellerin
dce341e152
[reports] allow header and footer sections to always be included 2018-01-23 20:08:14 +07:00
Denis Rouzaud
4125c25bba astyle 3.1 allows format of lambdas on a single line 2018-01-23 08:43:04 -04:00
Denis Rouzaud
50e1e78113 run astyle 2018-01-23 02:10:41 -09:00
Denis Rouzaud
834a945c5f update astyle to 3.1 2018-01-23 02:10:41 -09:00
Alexander Bruy
77a6bbbb0a [processing] restore GDAL rasterize algorithm 2018-01-23 12:27:04 +02:00
Alexander Bruy
f2273c6a11 [raster calculator] don't crash if output file has illegal size, e.g. 0x0 2018-01-23 10:55:41 +02:00
Alexander Bruy
c09c301803 [processing] throw error if no layers selected in raster calculator
algorithm (refs #17920)
2018-01-23 10:38:59 +02:00
Alexander Bruy
d7e1813180 [processing] make items hidden after adding them to the view (fix #17881) 2018-01-23 10:00:28 +02:00
Mathieu Pellerin
aaf97933c2
[needs-docs][processing] merge grid algorithms and add point grid type 2018-01-23 13:54:53 +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
88808615a8 Drop composer
It's been a great journey, but your time has come...
2018-01-23 15:30:01 +11:00
Nyall Dawson
4096896d3b Tweak some report designer strings 2018-01-23 14:21:00 +10:00
Nyall Dawson
a5ca16e8d4 Remove header for report organizer tree 2018-01-23 14:21:00 +10:00
Nyall Dawson
37c8706548 Initially select report section when opening a report designer 2018-01-23 14:21:00 +10:00
Harrissou Sant-anna
3f801b5d16 Switch SpatiaLite and PostgreSQL place in Datasource
Manager dialog
Moves up SpatiaLite tab near GeoPackage's as they are both simple file databases and their dialog look alike.
2018-01-23 12:35:44 +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
c87f5aad1b [processing] Fix misleading errors in grid algorithms 2018-01-23 12:35:29 +11:00
Nyall Dawson
7d60329047 Fix build 2018-01-23 11:19:50 +10:00
Nyall Dawson
e24496cd38 Silence warning 2018-01-23 11:19:50 +10:00