7061 Commits

Author SHA1 Message Date
Matthias Kuhn
efc7e87fb9
Merge pull request #9250 from uclaros/fix_reshape_bug
Quick fix for a bug in QgsGeos::reshapeLine that causes QGIS to crash…
2019-03-21 08:48:40 +01:00
Nyall Dawson
acdb368024 [processing] Allow QgsGeometry values for point parameter values
The centroid of the geometry is used for the point parameter value.
This makes it easier to write expressions for the value of point
parameters, since all the QGIS expression functions for working
with geometry types return QgsGeometry value themselves (e.g.
make_point, centroid, ...). In this case it's much nicer to
allow expression values like `make_point(3,4)` within a precalculated
expression based value in a Processing model.
2019-03-21 15:25:54 +10:00
Martin Dobias
f85d494303
Merge pull request #9549 from wonder-sk/online-3d-terrain
[3d] Add option to use terrain data from online service
2019-03-20 13:48:27 +01:00
rldhont
638650a5a2
Merge pull request #9525 from rldhont/fix-server-getprint-jpg
[Server] JPEG output for WMS GetPrint request has gone
2019-03-20 10:37:45 +01:00
Juergen E. Fischer
ab340f2de4 fix windows build 2019-03-19 22:14:48 +01:00
Nyall Dawson
8cff94190d [processing] Fix QgsProcessingProvider::isSupportedOutputValue handling
of optional output parameters

Refs #21374
2019-03-20 06:01:15 +10:00
Martin Dobias
3032a65317 Add tests, fix issues from review, customizable terrain downloader 2019-03-19 15:29:55 +01:00
rldhont
547fd683d9 [Bugfix][Regression][Server] JPEG output for WMS GetPrint request has gone
In QGIS Server 2.* the WMS GetPrint request could genrate JPEG image. QGIS Server 3.4 has lost this capabilities.
```
<ServiceExceptionReport xmlns="http://www.opengis.net/ogc" version="1.3.0" capture-installed="true">
    <ServiceException code="InvalidFormat">
        Output format jpg is not supported by the GetPrint request
    </ServiceException>
</ServiceExceptionReport>
```
To fix this regression, it is necessary to accept JPEG output format.

And to avoid this regression to come back, the QGIS Server tests has been updated to accept jpg image test.
2019-03-19 10:18:49 +01:00
Blottiere Paul
1e8aec45a0
Merge pull request #9385 from pblottiere/server_external_clean
[server] Update external layer management
2019-03-19 08:59:00 +01:00
Nyall Dawson
d7abfb47ee Test thread safety of proj context generation
Sponsored by ICSM
2019-03-19 11:47:01 +10:00
Nyall Dawson
3ce0acc8b1 Remove another use of deprecated proj API 2019-03-19 11:47:01 +10:00
Nyall Dawson
09437bb957 Improve test 2019-03-19 11:47:01 +10:00
Matthias Kuhn
1f38b441e7
Merge pull request #9493 from m-kuhn/fix-geomvalidator-freeze
Fix freeze in geometry validator
2019-03-18 15:47:03 +01:00
Matthias Kuhn
87686cdd45
Update tests 2019-03-18 13:19:45 +01:00
Blottiere Paul
cbc4270afb Add unit test for getprint and external layers 2019-03-18 08:44:25 +00:00
Blottiere Paul
216826bbf6 Add test for getmap and external layers 2019-03-18 08:44:25 +00:00
Nyall Dawson
92c8fddac2 [FEATURE][processing] Add new algorithm "Print layout map extent to layer"
This algorithm creates a polygon layer containing the extent
of a print layout map item, with attributes specifying the map
size (in layout units), scale and rotatation.

The main use case is when you want to create an advanced overview
indicator and the inbuilt layout tools to do this don't suffice.
2019-03-18 18:24:18 +10:00
Nyall Dawson
a38e9e66fc [processing] Fix layerName= suffix is incorrectly passed to SAGA algorithms
Fixes #21569
2019-03-18 18:24:02 +10:00
Nyall Dawson
bdbb622bac Fix crash when using QgsLayoutItemComboBox when null values
are displayed

Turns out there is NO reliable way to create a proxy model
which adds new rows to a model, so just bite the bullet and
do it in the underlying model (yuck)
2019-03-18 17:32:31 +10:00
Nyall Dawson
719a225bca [processing] Port point widget wrapper to new API
And switch to a snapping canvas tool when selecting points from canvas
2019-03-17 16:19:40 +10:00
Peter Petrik
37faa0d883
Add option to format time in mesh layer (#9452)
[feature] [mesh] #20731 add option to format time in mesh layer

There is new settings dialog that can be opened by button next to time slider. User can set reference time and time format (e.g. 2019-03-21 22:01:11).
2019-03-15 08:42:28 +01:00
Hugo Mercier
a7d060bb96
Merge pull request #9494 from mhugo/force_provider_constraints
Allow the strength of provider constraints to be soft
2019-03-14 08:42:12 +01:00
Hugo Mercier
1eaa5bbf96 Allow the strength of provider constraints to be set to soft 2019-03-13 15:30:29 +01:00
Matthias Kuhn
78351effd9
Merge pull request #9500 from m-kuhn/disable_flaky_test_3d_mesh_text
Disable flaky 3D mesh rendering test
2019-03-13 08:11:29 +01:00
Nyall Dawson
46e3304d2c Fix naming collision 2019-03-13 16:52:29 +10:00
Nyall Dawson
32fbf0a92b [processing][FEATURE] New parameter type for map scales
This adds a new parameter type specifically for map scales,
QgsProcessingParameterScale. The values are evaluated using
self.parameterAsDouble, which returns the map scale
denominator (matching the standard in other parts of the
QGIS API).

Scale parameters are displayed to users using the standard
QgsScaleWidget, which includes the combo box of predefined
scales and a shortcut button to match the current map scale.
2019-03-13 16:52:29 +10:00
Nyall Dawson
ca7008c285 Add API to allow QgsScaleWidget to accept NULL values 2019-03-13 16:52:29 +10:00
Nyall Dawson
7c582063c1 Add API to allow null values in QgsScaleComboBox 2019-03-13 16:52:29 +10:00
Matthias Kuhn
2a41fd0c7d
Disable flaky 3D mesh rendering test 2019-03-13 07:31:37 +01:00
nirvn
b97ef936be [expression] Negative index support to point_n(), angle_at_vertex(), distance_to_vertex() functions 2019-03-13 11:20:04 +07:00
Matthias Kuhn
857fe53773
[FEATURE] Merge pull request #9460 from m-kuhn/labeling_geometry_generator
 Geometry generators for labeling 
2019-03-12 14:15:51 +01:00
Matthias Kuhn
8c676ba0b3
Disable flaky ogrprovider test 2019-03-12 10:56:11 +01:00
Nyall Dawson
41d8a9c20b Fix test 2019-03-12 08:16:52 +10:00
Nyall Dawson
422d0f7a2e Correctly sort items in QgsLayoutItemComboBOx 2019-03-12 08:16:52 +10:00
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
uclaros
d620ddd134 nose2 method assertions 2019-03-11 11:59:52 +02: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
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
3b98331502 [3d] Fix crash if the input data contain some empty polygons 2019-03-10 22:44:14 +01:00
Matthias Kuhn
a133bcae45
Fix sip bindings and ignore missing docs 2019-03-10 18:37:41 +01:00
Matthias Kuhn
f4d5788313
Add test for geometry generator labeling 2019-03-10 15:03:36 +01:00
Matteo Nastasi
7c6b66be8a [FEATURE] [needs-docs] add new vertical and horizontal equispaced distributions 2019-03-09 18:18:07 +01:00