62175 Commits

Author SHA1 Message Date
José de Paula Rodrigues Neto Assis
52c5fb6a88 Make Travis happy (Python whitespace/formatting) 2020-04-16 00:50:45 -03:00
José de Paula Rodrigues Neto Assis
8fbdf2d4e0 Tests for handling int8 PostgreSQL PKs. 2020-04-16 00:50:45 -03:00
José de Paula Rodrigues Neto Assis
0d0fe48c3a Don't cast PGSQL bigint PKs to text on queries.
PostgreSQL bigint primary keys are no longer cast to text on
queries/updates. Internally we keep a FID map between the real database
value and the internal QGIS feature ID. Thus, we preserve the QGIS
semantics of using negative FIDs for newly added features, while still
allowing users to edit attributes whose PKs are bigint non-positive.
2020-04-16 00:50:45 -03:00
José de Paula Rodrigues Neto Assis
71ad8c82a2 Don't treat PGSQL bigint PKs as text. Fixes #34077
On PostgreSQL tables whose primary keys are of type bigint/bigserial,
QGIS used to cast the primary keys to text, causing the database to do
bigint::text castas and full table scans instead of using the indices,
causing in turn slowness on updates and other queries.

This fix creates a new QgsPostgresPrimaryKeyType, PktInt64. PostgreSQL
don't know about unsigned types, so the PK type PktUint64 loses sense.
Knowing that the PK is an integer type, QGIS won't cast it to text
anymore, thus enabling the correct use of database indices.
2020-04-16 00:50:45 -03:00
José de Paula Rodrigues Neto Assis
7ee193e184 Fixes debug message for Postgis/Proj version.
Returns the correct version for the Proj library linked against the
running PostGIS.
2020-04-16 00:50:45 -03:00
Etienne Trimaille
cac5a0cae8 display plugin name when an error occured in qgis_process 2020-04-16 10:30:05 +10:00
Matthias Kuhn
29adf2eea0 Do not skip first line on value map csv import
Fix https://github.com/qgis/QGIS/issues/32250
2020-04-16 08:24:57 +10:00
Matthias Kuhn
7a116789ce Fix sort order of value map import of csv
Fix https://github.com/qgis/QGIS/issues/32250
2020-04-16 08:24:57 +10:00
Matthias Kuhn
928525fbd8 Improve load file dialog title 2020-04-16 08:24:57 +10:00
Alessandro Pasotti
9a869115e9 Try to fix mxe (again) 2020-04-16 08:24:38 +10:00
Nyall Dawson
7fd72f3b4e [FEATURE][processing] Allow reordering model inputs
Instead of forcing a quasi-random ordering of inputs for models,
this commit exposes a new "Reorder Model Inputs" option in the model
designer which allows users control over the exact order of
inputs to show users for their model.

No more illogical ordering like showing a field choice before the
layer choice it's based on!

Sponsored by NaturalGIS
2020-04-16 06:03:48 +10:00
Alexander Bruy
2770c4990e
Merge pull request #35790 from alexbruy/connections-fixes
import/export for ArcGIS Map and FeatureServer connections (fix #27485)
2020-04-15 20:20:23 +03:00
Jorge Gustavo Rocha
5efb3e2b4e Update sip files 2020-04-15 15:31:14 +01:00
Alessandro Pasotti
869e148f69
Merge pull request #35688 from elpaso/alias-expressions
Forms: expression controlled aliases (labels)
2020-04-15 15:09:15 +02:00
Martin Dobias
2589750595 Bring back commented out lines in the test 2020-04-15 13:38:19 +02:00
Martin Dobias
2dc3930385 Try to fix test: probably due to file://c:/xxx instead of file:///c:/xxx 2020-04-15 13:38:19 +02:00
Martin Dobias
bd2277562e blind try to fix a test 2020-04-15 13:38:19 +02:00
Martin Dobias
ba7b785870 Address comments from Nyall's review 2020-04-15 13:38:19 +02:00
Martin Dobias
59c1ac348d Add support for identify tool for vector tile layers
Also:
- enables saving/loading of layer definition files (.qlr) with vector tile layers.
- makes fields of vector tile layers sorted so they are easier to navigate
2020-04-15 13:38:19 +02:00
Alexander Bruy
840d204636 [feature] enable import/export of ArcGIS connections (fix #27485) 2020-04-15 13:35:11 +03:00
Alexander Bruy
99a930ca51 [feature] add API to import/export ArcGIS MapServer and FeatureServer
connections. This is API-only change not visible for users.
2020-04-15 12:54:58 +03:00
Alessandro Pasotti
6f3cac2d3e Tag current_value and current_parent_value functions as not static
... and use the new approach for dynamic labels
2020-04-15 11:13:24 +02:00
Alessandro Pasotti
83e42f5bac Apply PR comments 2020-04-15 10:48:16 +02:00
Alexander Bruy
76872fb5c9
Merge pull request #35764 from alexbruy/ds-manager
Add XYZ tiles to Datasource manager dialog and Layers menu
2020-04-15 11:26:24 +03:00
Nyall Dawson
d746b513f3 Another test fix 2020-04-15 18:20:27 +10:00
Nyall Dawson
ae18de7b9c Add missing file 2020-04-15 18:20:27 +10:00
Nyall Dawson
523470d42c Fix more travis tests 2020-04-15 18:20:27 +10:00
Nyall Dawson
606fa851b0 Travis test nonsense 2020-04-15 18:20:27 +10:00
Nyall Dawson
bfadf47d16 [FEATURE] Allow running model files direct from standalone qgis_process tool 2020-04-15 18:20:27 +10:00
Nyall Dawson
91b29aa5fd Add unit tests for qgis_process 2020-04-15 18:20:27 +10:00
Nyall Dawson
bafa1db128 Spelling 2020-04-15 18:20:27 +10:00
Nyall Dawson
ba7ffcf6a0 Fix mac build 2020-04-15 18:20:27 +10:00
Nyall Dawson
3d1d699b69 Abort if mandatory parameters aren't specified 2020-04-15 18:20:27 +10:00
Nyall Dawson
bbf7dfbc7b Improved algorithm help output 2020-04-15 18:20:27 +10:00
Nyall Dawson
47cbd8c24a BSD handling 2020-04-15 18:20:27 +10:00
Nyall Dawson
f11deee4de Allocate on stack 2020-04-15 18:20:27 +10:00
Nyall Dawson
1140a0856d Don't include sigwatch on Windows builds 2020-04-15 18:20:27 +10:00
Nyall Dawson
f9a58d21cd Rename 'qgis_transform' to 'qgis_process' 2020-04-15 18:20:27 +10:00
Nyall Dawson
019035b1c1 [FEATURE][processing] New standalone console tool for running processing algorithms
This new qgis_transform tool allows users to run processing algorithms
(both built-in, and those provided by plugins) directly from the console.

Running:

- "qgis_transform list" will output a complete list of all available
algorithms, grouped by provider.
- "qgis_transform plugins" lists available and activated plugins which
advertise the hasProcessingProvider metadata option (only these plugins
are loaded by the tool)
- "qgis_transform help algid" outputs the help and input descriptions
for the specified algorithm, e.g. "qgis_transform help native:centroids"

"qgis_transform run": runs an algorithm. Parameters are specified by a
"--param=value" syntax. E.g.

  qgis_transform run native:centroids --INPUT="my_shapefile.shp" --OUTPUT="centroids.kml"

or

  qgis_transform run native:buffer --INPUT=/home/me/my.shp --DISTANCE=20 --OUTPUT=/home/me/buffered.shp

While running an algorithm a text-based feedback bar is shown, and the
operation can be cancelled via CTRL+C

Sponsored by the Swedish User Group
2020-04-15 18:20:27 +10:00
Nyall Dawson
5ae631ac91 Try to fix crash on GEOS 3.8.1 when empty coordinate sequence is returned
for a point geometry

Fixes #35719, fixes #35526
2020-04-15 16:48:24 +10:00
Nyall Dawson
731aa90080 Fix a test under proj 6 2020-04-15 16:01:08 +10:00
vcloarec
7b0e808695 adapt mesh trace renderer for volume 2020-04-15 15:57:26 +10:00
Alexander Bruy
261553dd28 fix docs 2020-04-15 08:33:55 +03:00
Martin Dobias
8c488b4ef0 Added QgsRenderContext arg to referencedFields() + unit tests 2020-04-15 08:33:29 +10:00
Martin Dobias
8ec0dc53fe Few bits from the review 2020-04-15 08:33:29 +10:00
Martin Dobias
a3807cf2a1 Added @zoom_level variable for data-defined styling 2020-04-15 08:33:29 +10:00
Martin Dobias
1f554621b2 Doxygen fixes 2020-04-15 08:33:29 +10:00
Martin Dobias
7c1d1fe97c Fix tests and reference image 2020-04-15 08:33:29 +10:00
Martin Dobias
0037e5675d Fix build 2020-04-15 08:33:29 +10:00
Martin Dobias
f8a6b9fa3a Add support for labeling of vector tile layers 2020-04-15 08:33:29 +10:00