59625 Commits

Author SHA1 Message Date
Nyall Dawson
c6565ef03a [processing] Ensure faster predicates are always tested first before slower predicates
Because we may be able to bypass the slower checks if the faster ones pass first
2020-01-03 05:25:33 +10:00
Nyall Dawson
16c83e061b Fix unjoinable features can get incorrectly added to both outputs when a separate unjoined feature output is set 2020-01-03 05:25:33 +10:00
Nyall Dawson
75cf5f2f62 Fix subtle logic bug in spatial join c++ port when join type is 1:1 and unjoinable features are not being collected 2020-01-03 05:25:33 +10:00
Nyall Dawson
6aa20fbd2f Only increment progress after processing a single feature 2020-01-03 05:25:33 +10:00
Nyall Dawson
bb131c8ab9 Rename variable for clarity 2020-01-03 05:25:33 +10:00
Nyall Dawson
be46152197 Don't use m prefix for local variable 2020-01-03 05:25:33 +10:00
Nyall Dawson
cfa5c317eb Use an enum for join methods for readability 2020-01-03 05:25:33 +10:00
Nyall Dawson
919b40e7fe Remove some unused members, avoid making some locally used variables member variables 2020-01-03 05:25:33 +10:00
Alex
e9aff0b695 join by location c++ port 2020-01-03 05:25:33 +10:00
Julien Cabieces
75ba9b394d fix clazy and fallthrough warnings 2020-01-02 20:59:28 +10:00
Julien Cabieces
710c00e092 install pyproj deb package to avoid owslib pip install error 2020-01-02 20:59:28 +10:00
Julien Cabieces
e5fd756527 Configure Oracle continuous integration 2020-01-02 20:59:28 +10:00
Julien Cabieces
8d4ef80377 Don't forget to rollback at the end of the tests 2020-01-02 20:59:28 +10:00
Julien Cabieces
00d0a062d3 close connection when deleting oracle transaction 2020-01-02 20:59:28 +10:00
Julien Cabieces
94d0b06df5 Don't use sdo_tune.extent_of if user doesn't ask explicitly for
estimated metadata
2020-01-02 20:59:28 +10:00
Julien Cabieces
780d29d5d3 Protect oracle conn method with mutex 2020-01-02 20:59:28 +10:00
Alexander Bruy
000409f9a6
Merge pull request #32922 from alexbruy/range-optional
[processing] add "not set" support for range parameter (fix #29374)
2020-01-02 11:53:25 +02:00
Nyall Dawson
c43613d0b2 Another hash 2020-01-02 18:26:49 +10:00
Nyall Dawson
158dfcc3cc More test hashes 2020-01-02 18:26:49 +10:00
Nyall Dawson
c4672ef984 Add extra raster hashes 2020-01-02 18:26:49 +10:00
Panos Mavrogiorgos
d7f0ea2293 Fix tests 2020-01-02 18:26:49 +10:00
Panos Mavrogiorgos
0c3cb558a8 Introduce GRASS_USE_REXTERNAL setting
GRASS GIS, in addition to importing data in its native formats via
`r.in.gdal`/`v.in.ogr` (and likewise `r.import`/v.import`),
also supports `r.external`/`v.external` which only link the data into
the GRASS DB.

Nevertheless, both `r.external` and `v.external` occasionally have problems,
especially on windows. E.g.:

- https://trac.osgeo.org/grass/ticket/3927

GRASS 7 Processing Plugin already has a setting that controls whether
`v.external` is used (disabled by default).

With this commit the complementary setting for `r.external` gets added too.
Usage of `r.external` is disabled by default. This is changing the existing
behavior, which was to use r`r.external`. The downsides of this change
should be the somewhat lower import speed + higher disk usage. Nevertheless
this way we have the same default value as `v.external` + we circumvent the
`r.import/v.import` shortcomings.
2020-01-02 18:26:49 +10:00
Denis Rouzaud
a83154cad9 add clear token 2020-01-02 09:18:58 +01:00
Denis Rouzaud
02919f8336 move condition to step 2020-01-02 08:13:06 +01:00
Denis Rouzaud
1626bba986 add name to action 2020-01-02 08:10:43 +01:00
Denis Rouzaud
bdf292e101 add documentation bot 2020-01-02 08:05:50 +01:00
Alexander Bruy
34f8ca3a94 NAN -> quiet_NaN() 2020-01-02 08:36:54 +02:00
Alexander Bruy
b5d71d39ac [processing] add "not set" support for range parameter (fix #29374, refs #29269) 2020-01-02 08:36:54 +02:00
Nyall Dawson
d8645f5285 Update rotate function help for optional center point 2020-01-02 14:45:06 +10:00
Nyall Dawson
0d4e4b9eb0 Update rotate function expression tests 2020-01-02 14:45:06 +10:00
Nyall Dawson
5bb63599e6 Make rotation centre point optional, and use geometry bounding box if not specified 2020-01-02 14:45:06 +10:00
Raymond Nijssen
933f1cac72 [FEATURE] rotate() expression function
Allows rotation of geometries around a point
2020-01-02 14:45:06 +10:00
Nyall Dawson
5792966b12 Update test results 2020-01-02 14:20:14 +10:00
Nyall Dawson
e05a04c7e7 Avoid doxygen warning 2020-01-02 14:20:14 +10:00
Nyall Dawson
bbacab4180 [processing] Use optimized spatial index load in Join by Nearest
and Split with Lines algorithms
2020-01-02 14:20:14 +10:00
Nyall Dawson
c46e89f7de [processing] Use bulk spatial index loader in Delete Duplicates algorithm
Cuts processing time to 70% of original for a 3 million point input file
(debug build)
2020-01-02 14:20:14 +10:00
Nyall Dawson
fe6abba251 [api] Add constructor for QgsSpatialIndex which allows for a callback
function during bulk index load from a feature iterator

Allows single-iteration of a source for dual purposes simultaneously,
e.g. doing other feature-based operations while still gaining the full
advantage of the bulk loaded spatial index without having to do multiple
feature iterations
2020-01-02 14:20:14 +10:00
basilrabi
a25f8b970f [RPM] fix broken -u flag in buildrmps.sh
When using `buildrpms.sh -u`, the script fails with:

```
Wrote: /builddir/build/SRPMS/qgis-*.src.rpm
Finish: rpmbuild -bs
Finish: buildsrpm
INFO: Done(qgis.spec) Config(default) 0 minutes 22 seconds
INFO: Results and/or logs in: result
INFO: Cleaning up build root ('cleanup_on_success=True')
Start: clean chroot
Finish: clean chroot
Finish: run
Source package created
Source package unavailable. Abort
```

The reason was because a wrong src.rpm file name was extracted by sed.
Instead of `qgis-*.src.rpm`, what was being extracted is
`qgis-*.src.rpm\r` which includes a carriage return. This change removes
any character at the end of the `.rpm` when extracting the file name.
2020-01-02 13:07:29 +10:00
Vincent Cloarec
30569bce1f Move QgsRasterLayerProperties class to the gui API
Motivation :
Move the QgsRasterLayerProperties class to the GUI API.
So, this class could be used using the QGIS API, notably for standalone applications.

The instance of this class was dependent, since QGIS 3.8, from the QgisApp instance, when calling the askUserForDatumTransform(). As this method, defines a title and only call QgsDatumTransformDialog::run() method from the gui API, this PR purpose to :
2020-01-02 13:02:32 +10:00
Andrea Giudiceandrea
ef9b8c2c25 Fix missing flags in r.reclass.area GRASS alg
Fixes #33569
2020-01-02 11:43:10 +10:00
Andrea Giudiceandrea
19465c6295 Fix validity mask filename quoting in Fillnodata alg
Fixes a bug similar to #33562
2020-01-01 09:07:58 +10:00
Andrea Giudiceandrea
fbca3641e5 Fix validity mask filename quoting in Sieve alg
Fixes #33562
2020-01-01 09:07:58 +10:00
Nyall Dawson
5a1a7438c4 Add unit test for #33540 2019-12-31 17:49:52 +10:00
Nyall Dawson
12006de1aa [processing] Port Delete Duplicate Geometries to c++ 2019-12-31 15:06:42 +10:00
Nyall Dawson
2433ee555f [FEATURE][processing] Add native affine transform algorithm for vectors
Offers the following benefits over the GRASS/SAGA versions:
- Full support for z/m values and handling curved geometries without loss
of curves
- Works with all native data types, no need for format transformation
- Supports dynamic (data defined, per feature) translate/scale/rotate parameters
- Allows transformation and scaling of both Z and M values (if present)
- Supports in-place edit mode

Fixes #33550
2019-12-31 15:01:34 +10:00
Nyall Dawson
bc5275af17
Merge pull request #33539 from Samweli/wms-t_layer_metadata_support
Show dimensions metadata on WMS layer metadata
2019-12-31 12:12:22 +10:00
Alex
1bf7e72132 North arrow / image should account for item rotation too
Fixes #33540
2019-12-31 12:11:41 +10:00
Nyall Dawson
5b7decb37a [pal] Standardise naming 2019-12-30 18:16:09 +10:00
Nyall Dawson
10bda51e64 [pal] Modernise memory management 2019-12-30 18:16:09 +10:00
Samweli Mwakisambwe
ad9313d081
Merge branch 'master' into wms-t_layer_metadata_support 2019-12-30 10:48:09 +03:00