1482 Commits

Author SHA1 Message Date
Alessandro Pasotti
3c4b2a7e73
Merge pull request #9704 from elpaso/bugfix-21697-server-gfi-top-group-layers
[server] Allow WMS GetFeatureInfo on root layer and groups
2019-04-05 07:46:22 +02:00
nirvn
9fd5509ad0 Add a aggregation method to concatenate unique values 2019-04-05 12:01:06 +07:00
Nyall Dawson
4582cb8d09 Fix crash, missing points in some corner cases 2019-04-05 12:00:47 +10:00
Nyall Dawson
426382c919 [FEATURE] Average line angles for marker and hashed line symbology
Previously, when marker or hash lines were rendered using interval
or center point place placement, the symbol angles were determined
by taking the exact line orientation at the position of the symbol.

This often leads to undesirable rendering effects, where little
jaggies or corners in lines which occur at the position of the
symbol cause the marker or hash line to be oriented at a very
different angle to what the eye expects to see.

With this new option, the angle is instead calculated by averaging
the line over a specified distance either side of the symbol. E.g.
averaging the line angle over 4mm means we take the points along
the line 2mm from either side of the symbol placement, and use these
instead to calculate the line angle for that symbol. This has the
effect of smoothing (or removing) any tiny local deviations from
the overall line direction, resulting in much nicer visual
orientation of marker or hash lines.

Like all symbol settings, the average angle smoothing distance
can be set using mm/pixels/map units/etc, and supports data-defined
values.

Closed rings also correctly consider wrapping around these average
angles from the start/end vertex.

(Sponsored by an anonymous corporate backer)
2019-04-05 12:00:47 +10:00
Alessandro Pasotti
d995070a8e Add missing reference file for gfi test 2019-04-04 14:28:27 +02:00
Alessandro Pasotti
a8ffb334cc Fix queryable on top getprojectsettings 2019-04-04 13:29:56 +02:00
rldhont
7de6eeb6d8
Merge pull request #9654 from rldhont/fix-regression-server-print-selection-pdf-master
[Unit-test]To avoid regression in Server printing to PDF output format
2019-04-04 12:28:38 +02:00
Alessandro Pasotti
9a689aff55 [server] Allow WMS GetFeatureInfo on root layer and groups
If the group (or the root) has any queryable child, it is flagged as queryable

Also fixes an issue with json enconding with rasters.

Fixes #21697

Funded by: Kanton Zug
2019-04-04 11:47:25 +02:00
Nyall Dawson
50dd2d6ec7 Unit tests for hashed line symbols 2019-04-03 02:31:27 +10:00
rldhont
56733ee0f7 Add unit-tests to avoid regression in Server printing to PDF output format
In QGIS 3.4, Selection can be printed in Image output and not in PDF or SVG output.

A fix has been done 2752f83 to fix inconsistent use of layout render context flags, and draw selection is activated with a flag.
2019-04-02 12:44:11 +02:00
Alessandro Pasotti
77b0e23299 Add test reference file for server locale overrides 2019-04-01 16:28:46 +02:00
Alessandro Pasotti
8a32848f85 Add tests for server locale override options 2019-04-01 16:24:24 +02:00
Alessandro Pasotti
62895d1f42
Merge pull request #9619 from elpaso/plugin-dependencies
Plugin dependencies optional support
2019-04-01 09:43:28 +02:00
Nyall Dawson
4472820ead More reference images and masks for layout attribute table tests 2019-04-01 16:11:31 +10:00
Nyall Dawson
824ba076da More reference images and masks for 3d tests 2019-04-01 16:11:31 +10:00
Blottiere Paul
0fe739d987 Update unit tests 2019-03-29 12:12:59 +01:00
Nyall Dawson
4f9d0029ad Add test mask images 2019-03-26 18:17:12 +10:00
Nyall Dawson
e5b87474d4 Test improvements
- Use standard test font, larger font size to minimize cross platform
rendering differences
- Create a local test report for debugging
2019-03-26 18:17:12 +10:00
henrik
4b90afdb9e Spelling 2019-03-26 18:17:12 +10:00
henrik
cf63e00500 Added tests for PointDisplacementRenderer labels. 2019-03-26 18:17:12 +10:00
rldhont
59e5a68df7
Merge pull request #9526 from rldhont/fix-server-getfeatureinfo-withfilter-withoutcrs
[Bugfix][Server] In WMS GetFeatureInfo CRS param not mandatory when FILTER param
2019-03-21 14:32:06 +01:00
Blottiere Paul
226e3d420d
Merge pull request #9592 from rldhont/forwardport-9418-on-master
Forwardport #9418 on master
2019-03-21 09:46:15 +01:00
Blottiere Paul
e9067834eb
Merge pull request #9362 from pblottiere/legend_json
Add json format for legend
2019-03-21 09:17:42 +01:00
rldhont
4d70a4e28e [Server] Add unit test for WFS GetFeature with BBOX param without EPSG 2019-03-21 09:05:45 +01:00
Blottiere Paul
2ccc3f158b Add test with big marker 2019-03-19 14:38:04 +00:00
Blottiere Paul
3f4999bd5f Add test for opacity 2019-03-19 14:38:04 +00:00
Blottiere Paul
8f76c23f1e Add unit tests 2019-03-19 14:38:04 +00:00
rldhont
34e67c111e [Bugfix][Server] In WMS GetFeatureInfo CRS param not mandatory when FILTER param
The CRS parameter is considered as mandatory in GetFeatureInfo even if the FILTER parameter is used without I and J parameters.

To fix it, set a fake CRS in the parameter when I/J and X/Y parameters are not defined and FILTER parameter is defined.
2019-03-19 13:54:07 +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
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
Alessandro Pasotti
b85d5af0c0 Add test for plugin dependencies
Also made minor changes to the function and
class names, to be more consistent with QGIS
naming conventions.
2019-03-18 09:20:06 +01: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
f4d5788313
Add test for geometry generator labeling 2019-03-10 15:03:36 +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
Nyall Dawson
12ba41750f Fix paletted raster renderer does not respect correct band when rendering
Fixes #21505
2019-03-07 18:50:06 +10:00
Nyall Dawson
558d5365b5 Add new plugin metadata string to indicate whether a plugin
implements Processing providers

Plugins which implement providers should include the

    hasProcessingProvider=yes

line within their metadata.txt file. This allows for rapid
identification of all plugins which implement Processing
functionality.
2019-03-02 12:06:59 +10:00
Nyall Dawson
2f82bab1d9 Add Python utils method to start a Processing specific plugin
This command adds a plugin to active plugins and calls initProcessing(),
initializing only Processing related components of that plugin.

The new initProcessing() hook should be implemented by plugins
which provide Processing providers or algorithm, and should only
implement code which is required to load the provider and algorithms.
Strictly no GUI related code should be used here, that MUST
be moved out of initializers and deferred to the plugin's
initGui implementation.
2019-03-02 12:06:59 +10:00
Blottiere Paul
0e8757b408
Merge pull request #9236 from signedav/scale_getlegendgraphic
On GetLegendGraphics take the scale context from map parameters
2019-02-26 10:19:56 +01:00
David Signer
61ceeb7968 expected images from travis 2019-02-25 17:07:44 +01:00
David Signer
8d1ceda878 correct images from qgis travis build 2019-02-25 15:10:14 +01:00
David Signer
de96fc75fa tests for scaled symbol sizes 2019-02-25 09:48:52 +01:00
Blottiere Paul
9f576b678e
Merge pull request #9204 from troopa81/wms_filters
Add possbility to define one filter for several layers
2019-02-25 09:05:08 +01:00
Nyall Dawson
e31fb920e7 [processing] Add API to allow custom expression variables to be set
for a model
2019-02-23 05:23:23 +10:00
Mathieu Pellerin
3433c9cc88 [FEATURE][3d] Add camera lens field of view settings 2019-02-23 05:20:38 +10:00
Julien Cabieces
b01239449f Update mask 2019-02-22 10:53:23 +01:00
Mathieu Pellerin
78e8c34200
[legend] Fix alignment and chopped off text of collapsed data-defined size legend symbol (#9228) 2019-02-22 15:18:06 +07:00
Julien Cabieces
21bfcfcca8 [FEATURE][needs-docs] Add possbility to define one filter for several layers 2019-02-19 11:07:49 +01:00
Hugo Mercier
9ed5b3f874
Merge pull request #9063 from mhugo/fix_19355
Fix $length in labels
2019-02-14 14:34:13 +01:00
Hugo Mercier
809196693c Fix $length in labels (fixes #19355)
Use the project expression scope to access project
parameters (ellipsoid and distance/area units)
2019-02-14 13:40:12 +01:00