54249 Commits

Author SHA1 Message Date
Nyall Dawson
b66b944535 [FEATURE][processing] New Raster Boolean logical OR/AND algorithms
These algorithms calculate the boolean OR or AND for a set of input
rasters. For AND, if all of the input rasters have a non-zero value
for a pixel, that pixel will be set to 1 in the output raster, otherwise
it will be set to 0. For OR, if ANY of the input rasters have a non-zero
value for a pixel, that pixel will be set to 1 in the output raster,
else 0.

A reference layer parameter specifies an existing raster layer to use
as a reference when creating the output raster. The output raster will
have the same extent, CRS, and pixel dimensions as this layer

By default, a nodata pixel in ANY of the input layers will result in
a nodata pixel in the output raster. If the 'Treat nodata values
as false' option is checked, then nodata inputs will be treated the
same as a 0 input value.

Makes for much simpler raster boolean logic calculation without
the complexity of using the raster calculator (and that's not
always possible to do anyway, e.g. when ANY of the input rasters
has a nodata pixel). It's also scalable dynamic to any number of
input rasters (unlike raster calc), so is more flexible when
used within models.
2019-03-11 07:45:44 +10:00
Martin Dobias
bdcacd7125
Merge pull request #9465 from wonder-sk/fix-terrain-change-crash
[3d] fix crash when switching terrain generator (fixes #21538)
2019-03-10 22:44:36 +01:00
Martin Dobias
3b98331502 [3d] Fix crash if the input data contain some empty polygons 2019-03-10 22:44:14 +01:00
Martin Dobias
4a6151ab48 [3d] fix crash when switching terrain generator (fixes #21538)
The problem was introduced in PR #8828 when fixing issue #20963

This fix immediately deletes terrain entity on generator change
and informs other code about that + identify map tool is now aware
of the fact that terrain entity may be temporarily null.
2019-03-10 19:16:06 +01:00
Alessandro Pasotti
175ebae8ad
Merge pull request #9453 from elpaso/bugfix-server-getfeatureinfo-error-code
[server] Fix error message reported when QUERY_LAYERS is missing
2019-03-10 19:04:29 +01:00
Alessandro Pasotti
d5de1d98b8
Merge pull request #9451 from elpaso/geopackage-project-storage-followup
Added option to load/store from/to the filesystem
2019-03-10 19:04:02 +01:00
Martin Dobias
6c79fffc5e [browser] Fix addition of PostGIS layers with unknown CRS
When a PostGIS table does not have CRS specified (srid == 0) then
it was not possible to correctly load it from browser (but it worked
from DB manager). The problem was that browser item used negative
srid in layer URI, messing up everything.

Also fixed the display of srid in tooltip (it says "unknown" rather
than showing -2147483648)
2019-03-10 17:42:30 +01:00
Martin Dobias
4a554d24ab Fix 3D polygon symbol to work with geometry collection
Some data sources report their geometry type as multi-surface
(a collection of polygons and curve-polygons) and so we should handle
them as well.
2019-03-10 17:42:06 +01:00
Matthias Kuhn
75d64eea4f
Merge pull request #9433 from rosaguilar/patch-2
Some functions now show up with autocompletion in the expression builder
2019-03-10 14:14:15 +01:00
Alessandro Pasotti
2537296e3f Add .gpkg file filter to the file selection dialog 2019-03-10 12:25:49 +01:00
Matthias Kuhn
7ceb97aec6
Merge pull request #9456 from Gustry/pyqt
replace some PyQt5 to qgis.PyQt
2019-03-10 12:08:07 +01:00
Matthias Kuhn
312473c4dd
Update python/plugins/MetaSearch/util.py
Co-Authored-By: Gustry <gustrimaille@yahoo.fr>
2019-03-10 06:34:10 -04:00
Matthias Kuhn
a91ecd534c
Merge pull request #9444 from NaturalGIS/gdal_fix_improve_gdal_clip_raster_by_mask
Fixes/improves the GDAL clip by mask layer tool
2019-03-10 10:35:13 +01:00
Matthias Kuhn
297908b218
Silence warning 2019-03-10 10:15:18 +01:00
Matthias Kuhn
e4105763e6
Fix "left" expression function 2019-03-10 10:15:12 +01:00
Alexander Bruy
bdf080588e
Merge pull request #9455 from alexbruy/fix-batch
[processing] add missed imports to batch panel (fix #21486)
2019-03-10 08:21:03 +02:00
Etienne Trimaille
2076ca4fe0
replace some PyQt5 to qgis.PyQt 2019-03-09 22:45:51 -04:00
Matthias Kuhn
ed154e292c
Fix indentation 2019-03-09 23:58:47 +01:00
Alexander Bruy
80dd6d5203 [processing] add missed imports to batch panel (fix #21486) 2019-03-09 20:34:15 +02:00
Matthias Kuhn
ddca636ec7
Merge pull request #9450 from m-kuhn/raii
More RAII in PAL
2019-03-09 18:54:24 +01:00
Matthias Kuhn
db15465e94
Remove obsolete line 2019-03-09 17:16:35 +01:00
Alessandro Pasotti
e5797e687b [server] Fix error message reported when QUERY_LAYERS is missing
According to WMS 1.3.0 specs:

7.4.3.4
QUERY_LAYERS
The mandatory QUERY_LAYERS parameter states the map layer(s) from which feature information is desired to
be retrieved. Its value is a comma-separated list of one or more map layers. This parameter shall contain at least
one layer name, but may contain fewer layers than the original GetMap request.
If any layer in the QUERY_LAYERS parameter is not defined in the service metadata of the WMS, the server
shall issue a service exception (code = LayerNotDefined).
2019-03-09 17:06:03 +01:00
Alessandro Pasotti
06678ebda3 Added option to load/store from/to the filesystem
+ Added tooltips with full path to the gpkg file
+ Fixed a crash when removing a stored project
2019-03-09 16:02:12 +01:00
Matthias Kuhn
c0d528ee2c
More RAII in PAL 2019-03-09 15:53:03 +01:00
Denis Rouzaud
8f0cfda89a
Merge pull request #9419 from 3nids/docker_tree
Refactoring of Docker builds
2019-03-09 15:31:18 +01:00
Juergen E. Fischer
5d9cbe9aca compile QTSignal statically (fixes #21514) 2019-03-09 15:28:18 +01:00
Juergen E. Fischer
7cc052885f Del doesn't need to be translated. Qt translates it automatically, but a wrong translation breaks the key (eg. Löschen instead of Entf in German); fixes #17281 2019-03-09 13:36:59 +01:00
Denis Rouzaud
d0d918fb2e the ultimate docker experience 2019-03-09 12:57:26 +01:00
Matthias Kuhn
dd242982c6
Merge pull request #9441 from m-kuhn/code_style
Code style
2019-03-09 12:56:42 +01:00
Giovanni Manghi
78cc5b2bf5 Fixes/improves the GDAL clip by mask layer tool: removes a an option (-te) that does not make sense for the clip by mask, and adds the option to allow choose the output resolution 2019-03-09 11:46:26 +00:00
Mathieu Pellerin
3057fd61b0
[plugin manager] Dont disconnect overall finished signal 2019-03-09 18:45:30 +07:00
Denis Rouzaud
829a614b71 do not exit on error 2019-03-09 12:40:59 +01:00
Denis Rouzaud
2777381fc9 🐳 2019-03-09 12:15:10 +01:00
Matthias Kuhn
d3a12dc63a
Code style 2019-03-09 11:49:37 +01:00
Matthias Kuhn
e41766e5db
RAII 2019-03-09 11:49:37 +01:00
Matthias Kuhn
785dd7fc8f
Remove unrequired default values 2019-03-09 11:49:37 +01:00
Matthias Kuhn
cebfa7b2a8
Range based for loops in labeling 2019-03-09 11:49:37 +01:00
Denis Rouzaud
0993d6cf6f k 2019-03-08 20:01:47 +01:00
Denis Rouzaud
e104cce237 gogogogog 2019-03-08 19:38:27 +01:00
Denis Rouzaud
fe0c6d9301 o 2019-03-08 19:15:45 +01:00
Denis Rouzaud
0049539ae6 k 2019-03-08 18:18:57 +01:00
Denis Rouzaud
870cd00a81 kkk 2019-03-08 18:03:04 +01:00
Denis Rouzaud
1117c6b302 wwer 2019-03-08 17:42:37 +01:00
Rosa Aguilar
f0c728949f
add parameters list to expression functions
expression function update
2019-03-08 16:32:19 +01:00
Denis Rouzaud
9e3a163586 k2 2019-03-08 16:30:22 +01:00
Denis Rouzaud
ef52052009 klap 2019-03-08 16:15:45 +01:00
Rosa Aguilar
2cae445256
Add parameter list for the expression editor
Expression function update
2019-03-08 15:56:29 +01:00
Denis Rouzaud
8528b1ff43 x 2019-03-08 15:53:07 +01:00
Denis Rouzaud
e510d32184 yeaaah 2019-03-08 15:20:13 +01:00
Matthias Kuhn
4f1dd95606
Merge pull request #9426 from qgis/pcav-patch-1
Update PULL_REQUEST_TEMPLATE.md
2019-03-08 15:04:07 +01:00