9486 Commits

Author SHA1 Message Date
Nyall Dawson
561a8326c5 Modernize language
And avoid insensitive/trigger words (as far as possible -- some are
coming from Qt or other external APIs)
2020-06-13 16:48:38 +10:00
Nyall Dawson
8eb1a45e21 Avoid losing expression context when accidentally assigning
a context to itself
2020-06-13 04:02:50 +10:00
José de Paula Rodrigues Neto Assis
bf04e38980 Code review.
Cleaner usage of std::shared_ptr< QgsPostgresSharedData >; removed
useless calls to .clear() on first invocation of methods. Code reviewd
by Nyall Dawson.
2020-06-12 08:48:44 +10:00
José de Paula Rodrigues Neto Assis
2a2188e58b Changed tests after rebasing on top of 7120e5da328
That change made a few improvements, and uncovered a bug in handling
tables with composite primary keys if one component is an integer.
2020-06-12 08:48:44 +10:00
José de Paula Rodrigues Neto Assis
952542abf9 Tests to check correctness of WHERE clauses for PostgreSQL 2020-06-12 08:48:44 +10:00
Nyall Dawson
14ee228a4b [processing] Matrix configuration dialog should open as an inline
panel, not a dialog
2020-06-12 08:39:43 +10:00
Nyall Dawson
2bb4aad8c9 Fix callout rendering to rotated labels
Fixes #36681
2020-06-12 05:01:11 +10:00
Nyall Dawson
47fba106dd
Improve method for calculation of rectangle centers (#37092)
More numerically stable in the case of massive rectangles.

This is the ultimate cause behind #36898 -- during rendering of the
worldwide layer in Winkel Tripel the inverse transform fails, so
the renderer sets a "maximal" filter extent for the layer (+/- double
max). The previous method for calculating the rectangles center would
fail, because it would overflow. The new method handles this case
and correctly returns 0,0.

Fixes bounding boxes show incorrectly when simplication is enabled
for a layer in certain projections.

Fixes #36898
Refs #30686 (partial fix -- this report includes two different bugs)
2020-06-11 13:53:20 +10:00
benoitdm-oslandia
7120e5da32
[postgres] correct timestamp comparison in where clause
fix #24163
2020-06-11 08:29:20 +10:00
Nyall Dawson
df46fba338 Fix collecting Triangle geometry types
Fixes #36638
2020-06-11 05:32:26 +10:00
Nyall Dawson
d81f498a99 Until we have support for TIN types, the multi type of Triangle
geometries should be multipolygon

Refs #36638
2020-06-11 05:32:26 +10:00
Nyall Dawson
e0c03f9f08 Fix writing triangle geometry type via QgsVectorFileWriter fails
Refs #36638
2020-06-11 05:32:26 +10:00
Nyall Dawson
61e7a5fc90 When scaling geometries for tesselation, ensure we don't change the
geometry's aspect ratio

If we scale by an uneven amount in the x vs y plane, then the resultant
tesselation uses a misrepresentation of the actual shape of the geometry,
resulting in a poor quality tesselation.

Follow up 8ee1c20b

Fixes #37077
2020-06-11 05:31:45 +10:00
Nyall Dawson
b5b42218af [ogr] Fix layer subset string is ignored when OGR refuses to accept
a compiled feature request expression

Fixes #37073
2020-06-11 05:31:16 +10:00
Nyall Dawson
8d00ae8638 [legends] Fix corrupted data defined legend rendering in layout designer
Fixes #36765
Fixes #34658
2020-06-11 05:30:42 +10:00
Alessandro Pasotti
dc6d34b3a8
Merge pull request #37071 from elpaso/bugfix-gh36398-server-wfs-gml-srsname-take2
Fix OGC utils filter srsName
2020-06-10 11:46:55 +02:00
Mathieu Pellerin
8192be7659
[delimitedtext] Fix datetime,date field type ignored (in CSVT et cie) 2020-06-10 13:38:08 +07:00
Alessandro Pasotti
80656cca38 Add test data for GML transformation context 2020-06-09 19:16:48 +02:00
Alessandro Pasotti
8cd7f0da6f Fix OGC utils filter srsName
Adds a layer + coordinateTransform context to pass
to the ogc utils functions that read the GML geometry
so that it can be transformed to layer's CRS when
constructing the feature filter.

Fixes #36398
2020-06-09 19:06:56 +02:00
Nyall Dawson
12dcfabb26 [geopdf] Allow users to reorder layers in the generated layer tree
Fixes #36535
2020-06-09 19:50:07 +10:00
Nyall Dawson
6237ba2ab1 Add some tests 2020-06-09 16:03:16 +10:00
Nyall Dawson
154a4995e0 [api] Optionally allow items in QgsMapLayerModel to be reordered via drag and drop 2020-06-09 11:38:16 +10:00
Matthias Kuhn
9e23fb98a0 Test 8bit 2020-06-09 08:39:33 +10:00
Matthias Kuhn
a4b26f23b0 Add test for preserving dpi 2020-06-09 08:39:33 +10:00
Alessandro Pasotti
5b19deba99 More PG tests for datetime conversions 2020-06-09 08:36:27 +10:00
Nyall Dawson
59ce5c8d65 Add mask file 2020-06-08 13:30:22 +10:00
Nyall Dawson
dc1b0aca72 Update tests 2020-06-08 13:30:22 +10:00
Nyall Dawson
9d8c6b4346 Test fixes 2020-06-08 13:30:22 +10:00
Nyall Dawson
777c75bccd Revise advanced effects warning to account for GeoPDF capabilities
when exporting canvas to GeoPDF
2020-06-08 13:30:06 +10:00
Nyall Dawson
0a9d61a0b3 Minor refactoring, more tests 2020-06-08 13:30:06 +10:00
Nyall Dawson
8d38aa2c15 Respect layer opacity and composition modes where possible when exporting GeoPDF
Fixes #33305
2020-06-08 13:30:06 +10:00
Nyall Dawson
ceb1dbb868 [geopdf] Ensure that layer order in GeoPDF layer tree matches project
layer order

Fixes #34910
2020-06-08 13:30:06 +10:00
Nyall Dawson
e2ec260b96 [geopdf] Expose option to set the initial visibility state of layers
in the created geopdf file from layouts

Reworks the layer structure section of the GeoPDF export options
dialog to add a new column allowing users to set the initial visibility
state of layers included in the PDF. This fixes a usability issue
with large generated GeoPDFs which can cause readers to grind to halt
when opening complex GeoPDF files with many layers.

Additionally, fixes an issue where users cannot set the logical
GeoPDF group for non-vector layers

Fixes #36536
2020-06-08 13:30:06 +10:00
obrix
63712f2f17 Update selective masking tests reference images. 2020-06-08 09:56:20 +10:00
Alessandro Pasotti
3cd210e12f
Merge pull request #36992 from qgis/revert-36713-unittest_wfs_within_srsname
Revert "Add unit test for WFS Post GetFeature Within"
2020-06-05 11:46:55 +02:00
nirvn
cbd3068443 [expression] Add optional language parameter to format_number() to control locale across different systems 2020-06-05 16:25:49 +07:00
Alessandro Pasotti
ec0368edb2 Revert "Add unit test for WFS Post GetFeature Within for EPSG 4326."
This reverts commit d92564a5d0ee2b4862a110bd8b13c4ed78dd43e6.
2020-06-05 08:19:58 +02:00
Alessandro Pasotti
e167ec87ef Revert "Add unit test for WFS GetFeature Within for EPSG 3857 and 'fake' EPSG 3857."
This reverts commit fabdb6442997101779fce7e3d2420d532adc29e9.
2020-06-05 08:19:58 +02:00
Alessandro Pasotti
e499e99483 Revert "Use assertRaises for cleaner code."
This reverts commit bcf71e095c6df95130772c4677eb45289157ad83.
2020-06-05 08:19:58 +02:00
Alessandro Pasotti
007bf986c7 Revert "Add expected failures."
This reverts commit dd86a5a3d2cd63fd4e2d9d39b6ec2482f2c389ff.
2020-06-05 08:19:58 +02:00
Matthias Kuhn
a741700013
Merge pull request #36909 from m-kuhn/offline_editing_style_copy
Fix styles are not copied in offline editing
2020-06-05 07:27:02 +02:00
Nyall Dawson
3ae1b2497d Followup d864dc85 - implement a better fix which also fixes exported
layertree names from layout GeoPDF exports

Fixes #33306
2020-06-05 13:34:36 +10:00
speillet
f68f7303bf fix scientific notation in scale notation that led to wrong interpretation (due to separator character) 2020-06-05 09:09:34 +10:00
Nyall Dawson
d74715c310 Add metadata to project for last save datetime alongside the existing
last saved username details
2020-06-05 08:41:00 +10:00
Matthias Kuhn
68574d9835 [api] Add QgsMapLayerStyleManager::copyStylesFrom 2020-06-03 14:37:57 +02:00
Nyall Dawson
d5a340f886 [processing] Port aggregates widget wrapper to c++
And add a TON of tests

Fixes #36843
2020-06-03 15:17:56 +10:00
Nyall Dawson
4fdfa949cf [processing] Start porting Aggregates parameters to C++
Port parameter type to c++
2020-06-03 15:17:56 +10:00
José de Paula Rodrigues Neto Assis
72d0150228 Make flake8 happy (formatting). 2020-06-03 08:40:18 +10:00
José de Paula Rodrigues Neto Assis
25122646e6 Added test cases for updating of tables with GENERATED fields. 2020-06-03 08:40:18 +10:00
José de Paula Rodrigues Neto Assis
e16ece7541 Changed insert/update of GENERATED fields
Changed the way GENERATED fields are inserted/updated. Previously we
used the DEFAULT keyword for INSERTing; now, we expose the generating
expression to the user, but ommit the field when inserting or updating a
feature.
2020-06-03 08:40:18 +10:00