7344 Commits

Author SHA1 Message Date
Marco Bernasocchi
64e92c1f89 use QStringLiteral in Settings
Signed-off-by: Marco Bernasocchi <marco@opengis.ch>

remove unused mServerSettings

Signed-off-by: Marco Bernasocchi <marco@opengis.ch>

Fix typo and code style

Signed-off-by: Marco Bernasocchi <marco@opengis.ch>

Fix test

Fix test
2019-04-05 08:01:41 +02:00
Marco Bernasocchi
2cda2afe3e Add test and sip
add missing methods

Signed-off-by: Marco Bernasocchi <marco@opengis.ch>

Update src/server/qgsserversettings.cpp

Co-Authored-By: mbernasocchi <marco@opengis.ch>

Update src/server/qgsserversettings.cpp

Co-Authored-By: mbernasocchi <marco@opengis.ch>

Update tests/src/python/test_qgsserver_wms_getmap.py

Co-Authored-By: mbernasocchi <marco@opengis.ch>

Update src/server/qgsserversettings.h

Co-Authored-By: mbernasocchi <marco@opengis.ch>

Adress most review comments in PR

Signed-off-by: Marco Bernasocchi <marco@opengis.ch>
2019-04-05 08:01:41 +02:00
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
578c398219 [FEATURE][expression] Add concatenate_unique() aggregation function 2019-04-05 12:01:06 +07: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
Nyall Dawson
4d7f0c2f50 More unit tests 2019-04-05 11:33:08 +10:00
Nyall Dawson
af2286323a Correctly handle inverse transforms with reversed axis CRS in proj 6.0 builds
This logic is too complex and fragile -- we should drop support for proj 6.0
as soon as we can, so that we can the inbuilt handling which
is enabled for proj >= 6.1 only.
2019-04-05 11:33:08 +10:00
Nyall Dawson
83dc159cc5 Correctly handle swapped axis order for proj 6.0 2019-04-05 11:33:08 +10:00
Nyall Dawson
905ccc0917 Fix proj4 build 2019-04-05 11:33:08 +10:00
Nyall Dawson
353060dc36 Add helper method to determine whether a proj string uses angular units 2019-04-05 11:33:08 +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
Nyall Dawson
714a4ac77a Remove duplicate test
This is just a direct copy of another test from this file -
the actual ring filter test is in Python
2019-04-03 02:31:27 +10:00
Nyall Dawson
48d2a37057 [FEATURE] New line symbol type: Hash line
This line symbol type is designed to replicate the ArcGIS Hash Line
symbol layer type. It allows for a repeating line segment to be
drawn over the length of a feature, with a line-sub symbol used
to render each individual segment.

To reduce code duplication, this is heavily based off the current
line marker symbol layer, since the functionality is almost
identical (draw some sub symbol at some interval along a line).
Accordingly, I've split off QgsMarkerLineSymbolLayer to move
as much of the common functionality as possible to a new abstract
base class, so that only the actual marker/line segment rendering
occurs in the marker line/hash line subclasses.

This also gives the hash line all the existing placement options
permissible for marker lines -- e.g. first/last vertex, mid points,
regular intervals, etc.

The hash line length and angle can have data defined overrides,
which are evaluated per-line segment, allowing for the hash line
to change size and angle over the length of a single rendered
feature.
2019-04-03 02:31:27 +10:00
Nyall Dawson
8d6e3dc911 [FEATURE][API] Add method to QgsSpatialIndex to perform
nearest neighbor search based on QgsGeometry to QgsGeometries

Previously only point - geometry was possible. But with this
change, you can safely and accurately use QgsSpatialIndex
to determine the nearest neighbours between any types of
geometries.
2019-04-03 02:31:03 +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
Nyall Dawson
6248bb8eea Fix failing TestQgsJsonUtils 2019-04-02 14:34:46 +10:00
Nyall Dawson
3c6c0ac2d5 Fix locally failing TestQgsColorScheme 2019-04-02 14:34:46 +10:00
Nyall Dawson
d1503e030a Fix network access manager test failing due to server change 2019-04-02 14:34:46 +10:00
Alessandro Pasotti
5b586e8139
Merge pull request #9671 from elpaso/bugfix-server-locale-override
[server] Allow locale and group separator override
2019-04-01 22:50:55 +02:00
Nyall Dawson
b28227fa7f Fix stuck tasks when proxied task using a proxy progress task
completes before the proxy task has been started by task manager

Fixes #21589, fixes #19761
2019-04-02 06:17:29 +10: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
120ae773b6 [server][feature][needs-docs] Add env vars to override locale ...
...and group separator:

QGIS_SERVER_OVERRIDE_SYSTEM_LOCALE (default '')
QGIS_SERVER_SHOW_GROUP_SEPARATOR (default false)
2019-04-01 16:22:37 +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
Alessandro Pasotti
2174577ee3
Merge pull request #9661 from elpaso/bugfix-21714-filewriter-field-length
Fix wrong field length in file writer
2019-04-01 08:24:20 +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
Nyall Dawson
2d3e9e156f
Update testqgsvectorfilewriter.cpp 2019-04-01 08:51:04 +10:00
Alessandro Pasotti
013bdf9405 Fix wrong field length in file writer
fixes #21714
2019-03-31 20:51:21 +02:00
lbartoletti
59c00b8823 add tests 2019-03-30 11:03:01 +10:00
Blottiere Paul
9ae06a52bf Fix test 2019-03-29 14:59:38 +01:00
Blottiere Paul
fd4ac20ea8 Update tests 2019-03-29 14:15:42 +01:00
Blottiere Paul
0fe739d987 Update unit tests 2019-03-29 12:12:59 +01:00
Blottiere Paul
cac591c3b7 Add unit tests 2019-03-28 11:34:50 +01:00
Blottiere Paul
c5817cb413 Add unit tests 2019-03-28 11:32:51 +01:00
Blottiere Paul
d7f12ea5b4
Merge pull request #9624 from pblottiere/server_context_3
[server] Add a WMS render context
2019-03-28 09:13:20 +01:00
Alessandro Pasotti
5b5cc50b9e
Merge pull request #9620 from elpaso/bugfix-badlayers-storage
Bugfix badlayers storage
2019-03-28 08:14:53 +01:00
Denis Rouzaud
631c7016db
scope enum for QgsProcessing::LayerHint (#9639) 2019-03-27 17:23:36 -05:00
lbartoletti
155e0eb507 [needs-docs] Fixes intersection on (multi)linestring/polygon Z, M and ZM. Fixes #21422 2019-03-27 22:14:40 +01:00
Denis Rouzaud
7fb752e0ff
[TRAVIS] run flaky test when label is defined (#9509)
to declare a test as flaky:

* for cpp, use

```
if ( !QgsTest::runFlakyTests() )
    QSKIP( "This test is disabled on Travis CI environment" );
```

* for Python, you can use `RUN_FLAKY_TEST` environment variable
2019-03-27 09:45:34 -05:00
Blottiere Paul
b702c30eb7 Update dxf unit tests 2019-03-27 15:00:38 +01:00
Blottiere Paul
365e01a1a0 Remove invalid layer in test 2019-03-27 14:59:06 +01:00
Blottiere Paul
51ab846d8e
Merge pull request #9545 from signedav/getlegendgraphics_HEIGHTWIDTH
SRCHEIGHT/SRCWIDTH for GetLegendGraphic request
2019-03-27 14:27:27 +01:00
David Signer
6722ad5917 fallback possibility if HEIGHT is used on GetLegendGraphics for maps as well 2019-03-27 11:53:54 +01:00