10010 Commits

Author SHA1 Message Date
Alessandro Pasotti
c1702db1be Adjust test for DPIs 2020-09-24 09:04:36 +10:00
Alessandro Pasotti
2dc86db74c Test debug code 2020-09-24 09:04:36 +10:00
Alessandro Pasotti
83525abd5c Respect scale lock when panning/zooming the map
Fixes #38953 and #38417
2020-09-24 09:04:36 +10:00
Nyall Dawson
1c3347af97 Expand size of recent CRS history to 30 items
Because I'm sure I'm not the only one who regularly works with
more than 10 CRSes...
2020-09-23 14:13:35 +10:00
Julien Cabieces
36a7d1b8c4 Fixes #31798 : don't convert bool to string in virtual layer 2020-09-23 06:08:50 +10:00
Nyall Dawson
8dd75cc9cc [layouts] Improve UI for formatting manual table cells
Instead of the confusing duplicate settings for foreground color
vs cell text color, remove the foreground color button and only
expose this color setting via the cell text color.
2020-09-23 03:15:28 +10:00
Denis Rouzaud
b4797b18ce
Merge pull request #38908 from 3nids/locator-fixes
Some locator fixes
2020-09-22 12:48:31 +02:00
Denis Rouzaud
d6f9b07cf1 fix completion + add test 2020-09-22 09:05:15 +02:00
Nyall Dawson
0b77f187ec Increase precision of georeferencing coordinates used when creating GeoPDF composition file
Fixes shift in geopdf feature positions when using geographic CRS at large scales

Fixes #37755
2020-09-22 14:06:02 +10:00
Nyall Dawson
fe501506dd Avoid calling geos methods for some more trivial point to point geometry calculations 2020-09-22 11:26:57 +10:00
Denis Rouzaud
a509491e5c add test for searching for display expression in active layer locator filter 2020-09-21 16:19:35 +02:00
Alessandro Pasotti
1c1febc0d6
Merge pull request #38870 from elpaso/bugfix-gh38092-executesql-feedback
Add feedback to executeSql
2020-09-21 15:45:21 +02:00
Nyall Dawson
426ee2120b [layouts] Fix legend symbol rendering doesn't respect linked map
scale when symbol uses map unit based sizes

Fixes #38326
2020-09-21 18:55:33 +10:00
Nyall Dawson
620948f809 Add method to change capitalization of QgsTextDocument 2020-09-21 12:05:54 +10:00
Nyall Dawson
f6719a9878 Fix tests 2020-09-21 11:05:34 +10:00
Etienne Trimaille
6076950c68 Add help string for parameters in Processing 2020-09-21 11:05:34 +10:00
vcloarec
9305e22a6c add tests and fix another issue 2020-09-21 08:04:29 +10:00
Alessandro Pasotti
d54c3101ae Add feedback to executeSql
Fixes #38092 by adding an optional QgsFeedback argument to
the executeSql method and by implementing the PQCancel
method in the PG provider internals.

While the cancellation works well for all supported provider while
fetching results in the loop, the cancellation of a running query is now
implemented for the postgres provider connection only because the GPKG
and GDAL both rely on GDALDatasetExecuteSQL which cannot be interrupted.

This PR also introduce a few optimizations in the PG DB-Manager
code that should probably fix also other "slowness" issues that
were reported after 3.x during PG query execution.

A small UX change in th SQL dialog makes it evident to the user that
a cancellation request has been sent to the backend: the button text
is changed to "Cancellation requested, please wait..." so that for
provider connections that are not able to interrupt the running query
and must wait for the fetching loop to exit from the exeuteSql call
the user knows that something is happening and that a cancellation
request has been successfully sent.
2020-09-19 11:15:41 +02:00
Alessandro Pasotti
3d67b37b4a Add missing import for new test 2020-09-18 11:06:20 +10:00
Alessandro Pasotti
67b5540263 Fix PG trust metadata layer loading
Fixes #38809

Followup 760347c3b6a95129db677a1915d90190779eaad5
2020-09-18 11:06:20 +10:00
Matthias Kuhn
8609a729c6
Merge branch 'master' into mssqldefaultvalues 2020-09-17 14:28:54 +02:00
Alessandro Pasotti
8ed98f64fd
Merge pull request #38815 from elpaso/bugfix-gh38716-marker-line-dd-angle
Set the line angle instead of the symbol angle
2020-09-17 12:25:33 +02:00
Nyall Dawson
49e9b613b8 [layouts] Keep a separate flag for whether only a subset of layers
are to be clipped from the project, instead of just tracking this
by the presence of any checked layers

Avoids inconsistencies between the layers which are visibly clipped
on the map vs the options which are set in the GUI.
2020-09-17 19:10:52 +10:00
Peter Petrik
fce4b27644
fix #35147 QgsMeshLayer map canvas rotation rendering (#38795)
fix #35147 QgsMeshLayer map canvas rotation rendering
2020-09-17 10:44:58 +02:00
Denis Rouzaud
5ca4ef8f3d
QgsField::ConfigurationFlags: use a negative form for the flags so th… (#38805)
* QgsField::ConfigurationFlags: use a negative form for the flags so that default flags is None

this will make this futureproof, so newly added flags won't cause trouble for compatibility with old projects

* follow up

* remove template class

* fix order of init

* follow up

* Revert "update test projects (open and save)"

This reverts commit c738609d9177ed398ba2a0ae0e1c16448accd5f6.

* DoNotExposeVia -> HideFrom
2020-09-17 10:31:22 +02:00
Alessandro Pasotti
7f92487454
Merge pull request #38816 from elpaso/bugfix-landingpage-wfsexposed
Update tests and fix wfs exposed fields list
2020-09-17 10:07:02 +02:00
Alessandro Pasotti
d66d2b655e
Merge pull request #38764 from elpaso/bugfix-gh38558-server-wfst-1.1.0-wrong-case
Fix server WFS-T 1.1.0 wrong case in transaction response
2020-09-17 10:06:29 +02:00
Alessandro Pasotti
247a399901 Add test for issue #38716 2020-09-17 09:42:51 +02:00
Juergen E. Fischer
8ee86d01a8 remove duplicate trailing ; 2020-09-17 08:12:14 +02:00
Juergen E. Fischer
b3e7230ac2 mssql provider:
* add missing support for non-integer and compound keys
* update unit tests
* unify time handling: iterator / minimumValue / maximumValue / uniqueValues
2020-09-17 08:12:14 +02:00
Nyall Dawson
484ba6f979 [labeling] Add a new capitalization option for "Title Case", and
rename the confusing "Capitalize First Letter" option to
"Force First Letter to Capital"

This change is intended to clarify the role of the "capitalize
first letter" option, and to provide an option which actually
does what users expect the "capitalize first letter" option
to do.

Fixes #16539
2020-09-17 09:33:51 +10:00
Nyall Dawson
6bd3dc54f8 Title case conversion works correctly on all uppercase string inputs 2020-09-17 09:33:51 +10:00
Alessandro Pasotti
c80093c47a Expose QgsProject::setInstance to API
Fixes #38755

Needs forward porting to all active branches
2020-09-17 07:28:45 +10:00
Julien Cabieces
7e8c7b3d0e Fixes #38796 : Fix serialization of QgsWeakRelation field pair 2020-09-17 07:25:23 +10:00
Alessandro Pasotti
4743c67420 Update tests and fix wfs exposed fields list 2020-09-16 18:41:51 +02:00
Denis Rouzaud
bc3d8fd988
Merge pull request #38285 from uclaros/split-add-topo-all-layers
Add topological points to all editable layers on split feature
2020-09-16 17:19:43 +02:00
Alessandro Pasotti
49037e050a
Merge pull request #38763 from elpaso/bugfix-gh38567-pg-unrestricted-geometry-srid
PG unrestricted geometry: trust SRID from geometry_columns
2020-09-16 08:11:41 +02:00
Denis Rouzaud
f6c98ec5f1
Merge pull request #38730 from 3nids/conf-flag-check-cb
Use a checkable combobox for fields configuration flags
2020-09-16 07:02:17 +02:00
Nyall Dawson
f1c0fe259f Fix calculation of zoom level for vector tiles
Previously the code was calculating the exact zoom level (a double
value) and then rounding this to an integer in order to determine
which rules should be applied.

This appears to violate the vector tile styling specifications,
which are designed to "round down" the zoom level, so that styling
rules like:

- layer zoom range: 12-22
- interpolated expression:
  case when @zoom_level > 12 and @zoom_level <= 14 then 1
  when @zoom_level > 14 and @zoom_level < 18 then 2
  when @zoom_level >=18 then 4 end

work correctly when the exact zoom level is just less than 12, e.g. 11.8

So now we use floor when converting a zoom level to int so that the
styling rules work correctly.

Additionally, this adds a new @vector_tile_zoom expression variable
which contains the original double value of the calculated tile zoom
(not the integer one used for layer visibility). Many mapbox GL styling
rules rely on non-integer zoom levels for interpolation, e.g.

Case when @vector_tile_zoom >= 11.2 then 4 ...

This change allows for smooth interpolation between zoom levels which
matches the web map appearance, instead of "jumpy" fixed level interpolation
we previously had.
2020-09-16 12:08:39 +10:00
Nyall Dawson
252149375c Fix reading saved color map file when an item's label contains
a comma character

Fixes #24112
2020-09-16 06:12:35 +10:00
Alessandro Pasotti
235864fbc3 Fix test data (add SRID) 2020-09-15 19:46:42 +02:00
Denis Rouzaud
c738609d91 update test projects (open and save) 2020-09-15 17:33:53 +02:00
Alessandro Pasotti
aa79a84017 Fix server WFS-T 1.1.0 wrong case in transaction response
Fixes #38558
2020-09-15 11:44:07 +02:00
Alessandro Pasotti
1560d9aea8 PG unrestricted geometry: trust SRID from geometry_columns
Fixes #38567 where the SRID was not detected if the table was empty.

Also: do not override the SRID passed explicitly in the data source
URI.

Note: the logic in the provider is becoming a bit convoluted, there
are too many corner cases, at least the test coverage is pretty
good.
2020-09-15 11:07:50 +02:00
David Marteau
fc67ddc970 Change CRS serialization/deserialization for geometry parameter value 2020-09-15 07:39:10 +10:00
David Marteau
6262965df9 Register meta type for geometry processing parameter
Fix QgsProcessingParameterGeometry argument list
2020-09-15 07:39:10 +10:00
David Marteau
aa0a8ab628 Add geometry filter for processing geometry parameter 2020-09-15 07:39:10 +10:00
David Marteau
f2b8e6970b Support point and rectangle as geometry parameter values 2020-09-15 07:39:10 +10:00
David Marteau
4eb779798e Implement QgsReferencedGeometry 2020-09-15 07:39:10 +10:00
David Marteau
4eb931e890 Add geometry processing parameter 2020-09-15 07:39:10 +10:00