54288 Commits

Author SHA1 Message Date
Nyall Dawson
021d1ef237 [FEATURE][processing] New parameter types for layouts and layout items
Allows processing algorithms which operate on a specific layout
and layout item selection
2019-03-12 08:16:52 +10:00
Nyall Dawson
f9fb4085b2 Tweaks to layout item combo box 2019-03-12 08:16:52 +10:00
Nyall Dawson
0003e91f27 Add methods to resolve parameters to layouts/layout items 2019-03-12 08:16:52 +10:00
Nyall Dawson
ba82954ac5 [processing] Add new parameter type for layout item objects 2019-03-12 08:16:52 +10:00
Nyall Dawson
dd49720863 [processing] Add new parameter type for print layout names 2019-03-12 08:16:52 +10:00
Nyall Dawson
5ec43cfdc1 [processing] Add project to QgsProcessingParameterWidgetContext 2019-03-12 08:16:52 +10:00
Nyall Dawson
8d77a6bdcc New gui class QgsLayoutComboBox
Shows a list of layouts
2019-03-12 08:16:52 +10:00
Nyall Dawson
cba22770dc Move layout manager model from app to core and add unit tests 2019-03-12 08:16:52 +10:00
Nyall Dawson
0b270f98fb
Merge pull request #9454 from nastasi-oq/distribute-equispaced2
[layout] add new vertical and horizontal equispaced distributions
2019-03-12 06:29:33 +10:00
Alessandro Pasotti
8e39f0f57a
Merge pull request #9478 from elpaso/bugfix-21028-db-manager-sqlite-thread
[db-manager] Invalidate sqlite connection if it was created in anothe…
2019-03-11 21:28:43 +01:00
Alessandro Pasotti
8fb112d26f [db-manager] Invalidate sqlite connection if it was created in another thread
Fixes #21028 - DB manager: SQLite objects created in a thread can only be used in that same thread
2019-03-11 16:04:00 +01:00
Matteo Nastasi
ae0e12b1b9 received all PR suggestions 2019-03-11 09:59:25 +01:00
Matteo Nastasi
245e5bafe6 create a private method to compute equispaced distributions 2019-03-11 09:58:44 +01:00
Matthias Kuhn
75efd24240
Merge pull request #9475 from vpicavet/patch-1
Revert "drinking" mention on PR template
2019-03-11 08:24:05 +01:00
Vincent Picavet
0b39b84a51
Revert "drinking" mention on PR template
A new mention "did not drink during coding" has been recently added to QGIS PR template.

I understand that this has to be considered as a joke. Events like codesprint sometimes include good beer, and I guess this new mention was a kind of private joke with regard to a specific situation. 

Offering beer or alcoholic beverage _alongside_ tea, coffee, juices and other alcohol-free beverages is no particular problem.

Meanwhile, I really think we should avoid this kind of reference. IT in general and OpenSource in particular, especially during events, often promote a drinking culture. This is wrong on many aspects. Some cultures ( mainly non-occidental) totally reject alcohol consumption, and we should be respectful for it.

Having a mention referring to alcohol in our PR template is really contradictory to our goal of inclusion and diversity. We should stay vigilant not to propagate a drinking culture which is opposite to our core values. We want to facilitate onboarding to the project, and a PR is one of the important steps converting users to contributors. We should keep it inclusive.
2019-03-11 08:09:03 +01:00
Matthias Kuhn
f575656ddb
Merge pull request #9461 from m-kuhn/pal_cleanup
Some cleanup in labeling and pal
2019-03-11 07:38:47 +01:00
Richard Duivenvoorde
7757ffc5dd Fix #21160: fix geojson in protocol and file twice
GDAL/OGR has two geojson related drivers now: GeoJSON and
GeoJSONSeq, see https://www.gdal.org/drv_geojsonseq.html

This commit makes it possible to open GeoJSONSeq (geojsonl and
geojsons and json) files as protocols/streams. And write them
as *.json.
2019-03-11 09:55:37 +10:00
Etienne Trimaille
fa843f8705 drop old processing provider example which is not compatible QGIS 3 2019-03-11 09:38:23 +10:00
Giovanni Manghi
7aa7248b97 Better GRASS r.series description to help workaround a limitation of Processing 2019-03-11 09:22:02 +10:00
Nyall Dawson
d1eec3bb37
Update src/ui/layout/qgslayoutdesignerbase.ui
Co-Authored-By: nastasi-oq <nastasi@openquake.org>
2019-03-11 00:13:53 +01:00
Alexander Bruy
8b621b6997 [feature][processing] expose GDAL pansharpening tool in the Processing 2019-03-11 08:48:02 +10:00
Alexander Bruy
0fcf567fb0 [processing] fix handling of the multiple layers parameter when inputs
are plain files
2019-03-11 08:29:03 +10:00
Nyall Dawson
82b186f00f [processing] Allow data type for numeric inputs to be specified 2019-03-11 08:05:07 +10:00
Nyall Dawson
9f6ddaf5c5 Fix qt warning on modeler algorithm edit 2019-03-11 08:05:07 +10:00
Nyall Dawson
cf43446885 [processing] Show parameter type in input definition dialog title 2019-03-11 08:05:07 +10:00
Nyall Dawson
dcc9f11c86 [postgres] Fix estimated metadata queries fail for huge tables
Fixes #21517
2019-03-11 07:46:08 +10:00
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
Matthias Kuhn
a133bcae45
Fix sip bindings and ignore missing docs 2019-03-10 18:37:41 +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
14352c7230
Use std::fill to initialize array 2019-03-10 17:27:50 +01:00
Matthias Kuhn
d73c8ea1b5
Range based for loops 2019-03-10 17:27:50 +01:00
Matthias Kuhn
2ab58c94db
Rule based labeling RAII 2019-03-10 17:27:50 +01:00
Matthias Kuhn
34a792ffdc
QVariant supports boolean 2019-03-10 17:27:50 +01:00
Matthias Kuhn
da0e4741c1
Pal should also use 64 bit fids 2019-03-10 17:27:50 +01:00
Matthias Kuhn
9de4b88e76
RAII for pal 2019-03-10 17:27:50 +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
Matteo Nastasi
0a3b20d02f fix code_layout error 2019-03-10 09:36:48 +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