57010 Commits

Author SHA1 Message Date
Mathieu Pellerin
a726f4f7fc
[FEATURE] Brand new map canvas image decoration (#31291) 2019-08-20 10:37:48 +07: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
Nyall Dawson
7d482641c7 Copy layout metadata to GeoPDF export settings if exporting metadata 2019-08-17 14:53:11 +10:00
Nyall Dawson
0e108567e6 Fix metadata export in GeoPDF 2019-08-17 14:53:11 +10:00
Nyall Dawson
d7ad628e27 Dox ++ 2019-08-17 14:53:11 +10:00
Nyall Dawson
a4af22e8fb Only export by layer for geopdf exports 2019-08-17 14:53:11 +10:00
Nyall Dawson
081c2b967c Remove outdated comment 2019-08-17 14:53:11 +10:00
Nyall Dawson
0537a6529a Fix broken see also link 2019-08-17 14:53:11 +10:00
Nyall Dawson
72363ea450 SHUDDDDUP 2019-08-17 14:53:11 +10:00
Nyall Dawson
82ad958db0 No warning 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
4384f3d882 Dox 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
a4d1b293a0 QgsMapRendererTask was NOT thread safe! ouch 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
65b4496538 GeoPDF export also requires GDAL builds with poppler/pdfium support built in 2019-08-17 14:53:11 +10:00
Nyall Dawson
a0b63502cd GeoPDF creation requires GDAL 3 or later, add API to determine whether it's available at runtime 2019-08-17 14:53:11 +10:00