56777 Commits

Author SHA1 Message Date
Matthias Kuhn
c8b277ba6c Call prepare method on geometry checks 2019-08-08 08:24:22 +02:00
Matthias Kuhn
fd64cbb2c0 Code style 2019-08-08 08:24:22 +02:00
Matthias Kuhn
dc7169e2df Add configuration interface for allowed gaps 2019-08-08 08:24:22 +02:00
Juergen E. Fischer
650f79617c fix windows build (includes update to inja.hpp 57ac9b93725cb) 2019-08-07 18:03:56 +02:00
Denis Rouzaud
97a002f35a
fix deprecation warning (#31141) 2019-08-07 17:40:50 +02:00
Denis Rouzaud
4e56eaf035
add test for relation aggreation with composite keys (#31117) 2019-08-07 14:01:45 +02:00
Nyall Dawson
eface49a6a Try to hide member from sip 2019-08-07 21:53:16 +10:00
Nyall Dawson
74e5ee132e Correctly register displaced points 2019-08-07 21:53:16 +10:00
Nyall Dawson
dca0f3f4fa Add API to allow rendered feature handlers to indicate which attributes
they require

And ensure these are fetched in the iterator used for rendering features
2019-08-07 21:53:16 +10:00
Nyall Dawson
992939c724 Call rendered features handlers when rendering maps 2019-08-07 21:53:16 +10:00
Nyall Dawson
c71cd4b5fc Initial work on rendered feature handler interface
Adds an interface for classes which provider custom
handlers for features rendered as part of a map render job.

QgsRenderedFeatureHandlerInterface objects are registered
in the QgsMapSettings objects used to construct map render
jobs. During the rendering operation, the handleRenderedFeature()
method will be called once for every rendered feature, allowing
the handler to perform some custom task based on the provided
information.

They can be used for custom tasks which operate on a set of
rendered features, such as creating spatial indexes of the
location and rendered symbology bounding box of all features
rendered on a map.
2019-08-07 21:53:16 +10:00
Julien Cabieces
2cc6775354 Use context.project() instead of QgsProject.instance() and
QgsProcessingUtils generateTempFileName method
2019-08-07 21:17:05 +10:00
Julien Cabieces
36fe8e64e3 Get supported extension to avoid unavailable driver 2019-08-07 21:17:05 +10:00
Julien Cabieces
4232e67c3d fixes #24041 : Write intermediate memory layer to disk in Execute SQL
algorithm so they can be referenced by the virtual layer provider
2019-08-07 21:17:05 +10:00
Matthias Kuhn
0181248fff
Merge pull request #31135 from m-kuhn/fix-measuretool-area
Measure Tool: Recalculate area when measure polygon drawing finishes
2019-08-07 10:50:37 +02:00
Juergen E. Fischer
65e86eb0de translation string fix 2019-08-07 10:27:57 +02:00
Matthias Kuhn
31f0b1fb94 Measure Tool: Recalculate area when measure polygon drawing finishes
Fix #31134
2019-08-07 10:02:38 +02:00
Matthias Kuhn
0ea4dfd481
Merge pull request #31053 from DelazJ/patch-15
Add checkbox to allow non core devs to indicate backport desire
2019-08-07 08:01:49 +02:00
Nyall Dawson
0419f182d8 Use a more appropriate, global snap to grid algorithm when simplifying
geometries for layout exports

This avoids all chance of slivers or overlaps between previously
adjacent features.
2019-08-07 15:57:26 +10:00
Nyall Dawson
d8d23b56ea [FEATURE][layouts] Add option to simplify PDF or SVG exports
This new setting, "Simplify geometries to reduce output file size",
is exposed in the SVG or PDF export settings dialogs shown when
exporting a layout/atlas/report to PDF or SVG.

If checked (the new default), geometries will be simplified while exporting
layouts in order to remove any redundant vertices which are not
discernably different at the export DPI. (e.g. if export DPI is 300 dpi,
vertices less then 1/600 inch different from each other will be removed).

This avoids exporting ALL geometry vertices during PDF/SVG export,
which can result in a ridiculously complex and large export file size.
Aside from the file size issues, it also causes problems when trying
to load these outputs into other applications, e.g. Inkscape, which
chokes on the huge number of vertices and grinds to a crawl.

Sponsored by the GeoPDF export group
2019-08-07 15:57:26 +10:00
Nyall Dawson
fe40512200 [layouts] Respect layout context simplification settings in layout map renders 2019-08-07 15:57:26 +10:00
Nyall Dawson
daf3491b5e [layouts] Add vector simplification method to QgsLayoutRendereContext
Allows specification of simplify method to use when rendering layouts
2019-08-07 15:57:26 +10:00
Nyall Dawson
615e245b18 Add method to specify global vector simplification overrides on a
QgsMapSettings object

If specified (they default to off), these simplification settings
will override any layer-specific simplification settings, and
provide a way for specifying a global simplication to apply
to vector layers while exporting maps.
2019-08-07 15:57:26 +10:00
Nyall Dawson
401b469ed0 Use real news feed url 2019-08-07 15:07:04 +10:00
Nyall Dawson
286b967917 Consistent dox 2019-08-07 10:40:30 +10:00
Nyall Dawson
238d0a0f9e Fix changing source effect properties doesn't "stick"
Fixes #31118
2019-08-07 10:35:26 +10:00
Nyall Dawson
99594147b1 [processing] Fix raster layers are not shown as an option for map layer
parameters in batch mode

Fixes #30739
2019-08-07 09:58:46 +10:00
Nyall Dawson
c6b3c47ecb Don't try to translate ellipsis character
Fixes #31115
2019-08-07 09:58:31 +10:00
Juergen E. Fischer
96253d2fb6 dwg import: allow opening existing geopackage without confirmation 2019-08-07 01:31:09 +02:00
Nyall Dawson
830ec4b308 Another test 2019-08-07 09:02:28 +10:00
Nyall Dawson
75326e50af Ensure raster style is not lost when dealing with invalid layer sources 2019-08-07 09:02:28 +10:00
Harrissou Sant-anna
0f3b02c988 Add checkbox to allow non core devs to indicate backport desire
and remove some superfluous checkbox in template
2019-08-06 23:59:27 +02:00
lbartoletti
03f48bdbd8 Rewriting documentation 2019-08-07 07:30:19 +10:00
lbartoletti
2354065e90 use Enum for Result of addTopologicalPoints 2019-08-07 07:30:19 +10:00
lbartoletti
aac1e23de0 remove debug message from test 2019-08-07 07:30:19 +10:00
lbartoletti
aaa6f65537 topologicalEditing: Fix Z for add feature 2019-08-07 07:30:19 +10:00
lbartoletti
6505e30fc4 use Q_ASSERT 2019-08-07 07:28:08 +10:00
lbartoletti
bdbb435d09 topological editing: fix topological editing for reshape map tool 2019-08-07 07:28:08 +10:00
Nyall Dawson
6a4ec5b704 [processing][needs-docs] Add missing input and output types to decorator syntax 2019-08-07 07:26:54 +10:00
Nyall Dawson
35fc3799cd Dox++ 2019-08-07 06:26:04 +10:00
Nyall Dawson
b4c4c99250 Improve QgsRasterLayer dox 2019-08-07 06:26:04 +10:00
Alessandro Pasotti
92ac7a2e93
[server] Server api and WFS3 (#10016)
Implementation of OGC API and WFS3 core draft specification
2019-08-06 16:38:21 +02:00
Daniele Viganò
8d44f84cd0 [RPM] Update the lib64 PyQtMacros.cmake patch 2019-08-06 16:15:10 +02:00
Juergen E. Fischer
cf6faa410d fix crash with invalid layers (fixes #31110) 2019-08-06 13:42:13 +02:00
Denis Rouzaud
0698eedc94
add test for detecting composite key relations (#31092) 2019-08-06 13:39:00 +02:00
Denis Rouzaud
e4faaf4988
add __repr__ for QgsMapLayer (#31108) 2019-08-06 13:36:14 +02:00
Nyall Dawson
e3fbe28148 Fix incorrect /Factory/ annotation 2019-08-06 21:31:59 +10:00
nirvn
ec75aa0300 [FEATURE][text renderer] Support vertical text orientation 2019-08-06 13:24:15 +07:00
Stephen Knox
9b4dbbd317 Fixes #28966 - disallow save project in postgres when < 9.5 (#30977) 2019-08-06 13:56:54 +10:00
Nyall Dawson
126ccb9736 Apply same logic regarding joined fields as is used in field calculator
to QgsFieldProxyModel set to hiding read only fields

I.e. show editable joined fields, but only if they are set to a non-hidden
editor widget
2019-08-06 13:47:41 +10:00