7747 Commits

Author SHA1 Message Date
Nyall Dawson
2ca302999d [FEATURE] "Center of segment" placement mode for marker and hash line symbol layers
Adds a new placement option to place markers/hash lines at the center
point of individual line segments

Refs #29785
2019-08-21 19:41:58 +10:00
Nyall Dawson
b3e4c28505 Fix unit test 2019-08-21 05:15:04 +10:00
Nyall Dawson
9116907eca Bounds polygon must be in PDF units 2019-08-21 05:15:04 +10:00
Nyall Dawson
edf81aae3d Add API to handle non-rectangular georeferenced regions in geopdf pages 2019-08-21 05:15:04 +10:00
Alessandro Pasotti
0897b4e7fe
Merge pull request #31299 from elpaso/server-python-catch-plugins-exceptions
Server: catch Python exceptions from plugins
2019-08-20 13:50:19 +02:00
Alessandro Pasotti
c9c2d3ed27 Server API: simplify contentTypes handling and allow overrides 2019-08-20 12:22:32 +02:00
Nyall Dawson
763e2ef94b Unit tests for theme based layout rendering feature collection 2019-08-20 14:58:14 +10:00
Nyall Dawson
f47ab549a2 If a layout map is set to follow a particular theme, don't iterate over
the export themes for that map

Otherwise it breaks the ability to have inset maps during iterated theme exports
2019-08-20 14:58:14 +10:00
Nyall Dawson
c8a368f598 Start prepping for group-based output, shuffle tests so that some work on GDAL < 3 2019-08-20 14:58:14 +10:00
Nyall Dawson
8459112cd3 Start on tests - todo - handle map theme in feature registration! 2019-08-20 14:58:14 +10:00
Nyall Dawson
39dc3147ef More tests 2019-08-20 14:58:14 +10:00
Nyall Dawson
a3d60751d7 Update export layer names 2019-08-20 14:58:14 +10:00
Nyall Dawson
5a252a3b81 Expose map theme info to export layer details 2019-08-20 14:58:14 +10:00
Nyall Dawson
f49389d751 [layouts] API framework to allow rendering multiple map themes to layered exports 2019-08-20 14:58:14 +10:00
Alessandro Pasotti
4cc7a0ffa6 Server: catch Python exceptions from plugins
Make sure Python exceptions are converted into
QgsServerException and catched by the main
service executor.

Without this patch, the server process is terminated
(aborted).
2019-08-19 18:32:03 +02:00
Alessandro Pasotti
b20f2ea175 Use layerId as OperationId (because of spaces and utf8 in the layer
names)
2019-08-19 14:44:58 +02:00
Nyall Dawson
79f796ee2b Unit test for georeferencing output 2019-08-19 15:23:53 +10:00
Nyall Dawson
0e108567e6 Fix metadata export in GeoPDF 2019-08-17 14:53:11 +10:00
Nyall Dawson
93342a33ce [FEATURE] GeoPDF export in map renderer task (e.g. save as canvas)
Not exposed to UI yet
2019-08-17 14:53:11 +10:00
Nyall Dawson
b1e3d047d6 Make QgsMapRendererStagedRenderJob thread safe 2019-08-17 14:53:11 +10:00
Nyall Dawson
84f086b485 Fix travis build 2019-08-17 14:53:11 +10:00
Nyall Dawson
30bd0f55d8 Fix build on Travis 2019-08-17 14:53:11 +10:00
Nyall Dawson
bd1e628358 Fix dox warnings 2019-08-17 14:53:11 +10:00
Nyall Dawson
36c6dc7ec5 Update tests 2019-08-17 14:53:11 +10:00
Nyall Dawson
f4cddb450a More tests 2019-08-17 14:53:11 +10:00
Nyall Dawson
c23b1c6d79 Tests 2019-08-17 14:53:11 +10:00
Nyall Dawson
541fc234cf Set correct field to display 2019-08-17 14:53:11 +10:00
Nyall Dawson
9018d23a54 Progress on exporting layered PDFs 2019-08-17 14:53:11 +10:00
Nyall Dawson
775c7c5bc1 Refactor out logic for exporting layouts into separate layers 2019-08-17 14:53:11 +10:00
Nyall Dawson
39b12a6a9d Use GADL to create actual GeoPDF from composition file 2019-08-17 14:53:11 +10:00
Nyall Dawson
522dacf9f4 Initial steps towards creation of GDAL composition XML 2019-08-17 14:53:11 +10:00
Nyall Dawson
3b5388b457 Write out rendered features to temporary layers on finalize 2019-08-17 14:53:11 +10:00
Nyall Dawson
afca6ef8b9 Add method to collate all collected features from different maps but the same layer 2019-08-17 14:53:11 +10:00
Nyall Dawson
2dbd5268d3 Add unit test with second map, correct map to layout transform calculation 2019-08-17 14:53:11 +10:00
Nyall Dawson
c54af27d94 Transform rendered feature bounds to layout item coordinate space 2019-08-17 14:53:11 +10:00
Nyall Dawson
e66135bfd0 We require a per-map-item rendered feature handler 2019-08-17 14:53:11 +10:00
Nyall Dawson
b397b457f8 Collect all features rendered during a geopdf export 2019-08-17 14:53:11 +10:00
Alessandro Pasotti
a3c4eb9947
Providers connections interface API
This is the implementation of the new DB connections API (grant proposal 2019).
Summary

The new API makes it available to QGIS core a new interface for provider connections and will allow to:

    replace the provider specific QgsSettings management in QGIS4 (save/load connections from the settings) NOT IN SCOPE FOR NOW.
    provide a unified API for common operations on DB connections:
        executeSql and get the results
        list tables names and properties and schemas
        create a new vector table (no rasters for now)
        create/rename/drop schemas and tables
        vacuum
       ....
2019-08-16 20:44:05 +02:00
Matthias Kuhn
3245376e64
Merge pull request #31167 from signedav/default-values-update
Update widgets with default values on attribute form
2019-08-16 16:42:39 +02:00
nirvn
bdf18ee0fd Add a QgsStringUtils function to substitute characters with vertical representation counterparts 2019-08-16 13:56:19 +07:00
Matthias Kuhn
fc482cbe05
Merge pull request #31158 from m-kuhn/geom_gaps_allowed
"Allowed gaps" layer for gap check
2019-08-16 08:00:42 +02:00
David Signer
f2073bd3b1 do only return true if both values are null and none of them is invalid 2019-08-15 22:22:11 +02:00
Matthias Kuhn
3c52497a08
Merge pull request #31264 from m-kuhn/fix_json
Fix variant to json array handling
2019-08-15 18:32:37 +02:00
Stephen Knox
2af4ad936a Cascade change to variable initialisation to other files 2019-08-15 14:32:12 +02:00
David Signer
9b236a07fe handles two null values as equal, since they can be handled as not equal by == comparison. 2019-08-15 11:02:37 +02:00
Nyall Dawson
992d26135d Fix replacement of fill/stroke opacity in parameterized svgs with opacity in style attributes 2019-08-15 18:54:23 +10:00
nirvn
b58a2a6c21 [FEATURE][expression] Optional format parameter for to_date, to_datetime, to_time functions 2019-08-14 12:54:46 +07:00
lbartoletti
57a9155d27 topological editing: fix topological editing for trim/extend map tool 2019-08-14 09:05:13 +10:00
lbartoletti
8ff30072da topological editing: fix copy/move feature 2019-08-14 09:03:51 +10:00
lbartoletti
e5cd1aa913 Topological editing: fix vertex tool (Z support) (#31163) 2019-08-14 09:00:58 +10:00