9992 Commits

Author SHA1 Message Date
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
Even Rouault
cd04374d51 [DelimitedText provider] Avoid false positive detection of some date looking content as Time (fixes #38091) 2020-09-15 07:38:31 +10:00
Even Rouault
6cdb866001 [OAPIF provider] Support extra query parameters (such as api key) (fixes #38436) 2020-09-15 06:47:35 +10:00
Nyall Dawson
9924b15baf Avoid a bunch of useless string parsing 2020-09-15 05:06:25 +10:00
Damiano Lombardi
85b0590c6e Implemented test for method QgsMssqlProvider::defaultValue 2020-09-14 16:03:57 +02:00
Alessandro Pasotti
212a52b5e9 New PG test for mixed geometry, no code changes 2020-09-14 15:26:31 +02:00
vcloarec
09c73433dd move QgsMeshLayerProperties to GUI 2020-09-14 15:55:18 +10:00
Nyall Dawson
229c240b59 Correctly parse 'match' interpolation list values during conversion 2020-09-14 12:42:49 +10:00
Mathieu Pellerin
c88548d382 Update expected test results 2020-09-14 08:42:46 +10:00
Blottiere Paul
a7df5c95c5 Remove unused project 2020-09-12 05:29:18 +10:00
Matthias Kuhn
a46acb4169
Merge pull request #38405 from olivierdalang/refFunctionsRebase
[feature][expression] refFunction port to core
2020-09-11 15:40:02 +02:00
Martin Dobias
7cbf80ff5c
Merge pull request #38309 from vcloarec/TINMeshCreaton
TIN Mesh creation
2020-09-11 13:41:19 +02:00
Denis Rouzaud
fdb8ff34cf
add tests for field restriction in active layer locator filter (#38692) 2020-09-11 09:34:27 +02:00
Alessandro Pasotti
63d8ee7fab
Merge pull request #38464 from rldhont/trust-layer-metadata-propagation
Trust layer metadata propagation
2020-09-11 09:08:55 +02:00
Ivan Ivanov
c76a32a66f
Parentheses are needed in case the filter expression contains "OR" (#38672) 2020-09-11 09:06:10 +02:00
vcloarec
2446e7f0cd minor fixes and add tests 2020-09-10 14:03:11 -04:00
vcloarec
5ffc4f298a some fixes and add tests 2020-09-10 14:03:11 -04:00
vcloarec
0f70883b6d test without different CRS
and add some const
2020-09-10 14:03:11 -04:00
vcloarec
07714f3931 port alg to c++
and minor fixes
2020-09-10 14:03:11 -04:00