57030 Commits

Author SHA1 Message Date
Denis Rouzaud
95355c55af
remove uncessary breaks 2019-08-20 15:38:48 +02: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
Peter Petrik
07841c4e2e fix sip 2019-08-20 13:40:26 +02:00
Peter Petrik
8f831bb37a qt 5.13.1 does not have QPrinter header 2019-08-20 13:40:26 +02:00
Peter Petrik
5e849793ca fix qml loading 2019-08-20 13:40:26 +02:00
Alessandro Pasotti
c9c2d3ed27 Server API: simplify contentTypes handling and allow overrides 2019-08-20 12:22:32 +02:00
Nyall Dawson
b47dea0cc6 Spelling 2019-08-20 14:58:14 +10:00
Nyall Dawson
090d148805 Remove outdated code 2019-08-20 14:58:14 +10:00
Nyall Dawson
b2ae45b475 Respect group structure in geopdf output 2019-08-20 14:58:14 +10:00
Nyall Dawson
763e2ef94b Unit tests for theme based layout rendering feature collection 2019-08-20 14:58:14 +10:00
Nyall Dawson
cf19528006 Fix crash in staged render jobs 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
Mathieu Pellerin
a726f4f7fc
[FEATURE] Brand new map canvas image decoration (#31291) 2019-08-20 10:37:48 +07:00
Alessandro Pasotti
dab7481083 More Python exception bubbling and SIP enum fix 2019-08-19 20:50:01 +02: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
037bdef53e
Merge pull request #31295 from elpaso/server-wfs3-layerid-as-operation-id
Use layerId as OperationId (because of spaces and utf8 in the layer
2019-08-19 15:57:48 +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
Matteo Ghetta
8cdfc2554d Rename Parent to Child (#31290) 2019-08-19 14:12:09 +02:00
Alessandro Pasotti
ea0b65034d
Merge pull request #31293 from elpaso/json-fix-gcc-list-initialized
Fix nlohman::json array list initializer broken on GCC
2019-08-19 14:03:03 +02:00
Alessandro Pasotti
69b1ba5c83 Remove const copy in favor of qgis::as_const 2019-08-19 12:50:48 +02:00
Alessandro Pasotti
5549a4e397 Remove unnecessary definition 2019-08-19 12:47:10 +02:00
Alessandro Pasotti
3924625b9b Fix nlohman::json array list initializer broken on GCC
the issue:

json j { something_returning_json_array_of_values() };

produces a json::array( json::array( values ) ) )

instead of json::array( values )

by using the assignment all is fine:

json j = something_returning_json_array_of_values();

produces a json::array( values ) as expected
2019-08-19 12:38:58 +02:00
Denis Rouzaud
8bcfdd355e
Merge pull request #31273 from 3nids/fix_deprecated_combo_signal
fix deprecated QComboBox::currentIndexChanged with string
2019-08-19 11:31:05 +02:00
David Signer
386e09c37a print logmessage instead of debug log 2019-08-19 08:10:01 +02:00
Mathieu Pellerin
e66a942018
[style manager] Fetch remote style XML file using QgsNetworkContentFetcherTask
Advantages include:
- automatic handling of URL redirects
- use the user's authentication settings
- all QGIS task bonuses (notification, task bar progress, etc.)
2019-08-19 12:55:54 +07:00
Nyall Dawson
e2e126a742 Add note 2019-08-19 15:23:53 +10:00
Nyall Dawson
79f796ee2b Unit test for georeferencing output 2019-08-19 15:23:53 +10:00
Nyall Dawson
71ccfed606 Correctly georeference canvas to GeoPDF exports 2019-08-19 15:23:53 +10:00
Nyall Dawson
bc96df9f6d Fix georeferencing of geopdf exports 2019-08-19 15:23:53 +10:00
Nyall Dawson
ff3e42164d UI improvements when GeoPDF export not available 2019-08-19 15:23:53 +10:00
Nyall Dawson
f5b90f583f Fix geometry transform for output GeoPDF features, clean up UI 2019-08-19 15:23:53 +10:00
Nyall Dawson
5f3f443681 [needs-docs] Expose choice of whether to include vector features in GeoPDF canvas output 2019-08-19 15:23:53 +10:00
Nyall Dawson
b9e160ba54 [needs-docs] Move some Export map to PDF settings to a new "advanced" group box 2019-08-19 15:23:53 +10:00
Nyall Dawson
817c425474 [needs-docs] Expose choice of text export setting to Save Map as PDF option
Exposes the same text output format choices as are available from
print layouts
2019-08-19 15:23:53 +10:00
Nyall Dawson
59df1982f6 Fix truncated GeoPDFs exported from map canvas 2019-08-19 15:23:53 +10:00
Nyall Dawson
446eb066d5 [needs-docs] Expose choice of GeoPDF export format to users
Either "ISO3200 extension" or "OGC 'best practice'" options are availab.e

ISO3200 format is recommended, and results in Geospatial PDF files compatible
with the built-in Acrobat geospatial tools.

The OGC Best Practice format results in GeoPDF files compatible with the TerraGo
suite of tools, but can break compatibility with the built-in Acrobat
geospatial tools (yes, GeoPDF format is a mess!).
2019-08-19 15:23:53 +10:00
Nyall Dawson
913f53a53f [FEATURE] Add option to simplify geometries when exporting canvas to PDF
Reduces output file size by removing redundant vertices given export
DPI settings
2019-08-19 15:23:53 +10:00
Nyall Dawson
7f00ea90a9 Don't omit .pdf extension when exporting map to pdf 2019-08-19 15:23:53 +10:00
Nyall Dawson
8d89dd99cd [FEATURE] Add option on whether to include RDF metadata during
save map to GeoPDF operations
2019-08-19 15:23:53 +10:00
Nyall Dawson
ec42cc76d3 [FEATURE] Add GUI option when exporting canvas to PDF for GeoPDF export
Adds a checkbox allowing users to control whether GeoPDF files should
be created when exporting the canvas as a PDF. If GeoPDF isn't available
(e.g. due to having GDAL < 3.0, or GDAL built without PDF read support),
then this option is disabled and an explanation shown as to why instead.
2019-08-19 15:23:53 +10:00
Nyall Dawson
6ad10e37f3 Replace enum based ifs with switches
And fix some double->int truncation warnings
2019-08-19 15:23:53 +10:00
Denis Rouzaud
a81c4b2f93
fix indentation 2019-08-18 15:55:33 +02:00
Juergen E. Fischer
19220b9e06 fix windows build including some warnings 2019-08-17 11:58:04 +02:00
Nyall Dawson
8b4cecb247 Fix page size to PDF coordinate space conversion, add some comments regarding 72 dpi assumptions 2019-08-17 14:53:11 +10:00