7126 Commits

Author SHA1 Message Date
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
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
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
David Signer
e1847725e4 use of SRCHEIGHT SRCWIDTH intead of HEIGHT WIDTH 2019-03-27 11:53:54 +01:00
Nyall Dawson
8daf4baef9 Followup https://github.com/OSGeo/proj.4/pull/1337
Add remaining mapping of old QGIS ellipsoid codes to PROJ db codes
2019-03-27 12:53:15 +10:00
Nyall Dawson
163f046945 Avoid loss of precision when reading ellipsoids from proj 2019-03-27 12:53:15 +10:00
Nyall Dawson
583f3d3472 Update/add new ellipsoid unit tests for proj 6 2019-03-27 12:53:15 +10:00
Denis Rouzaud
f000956e86
Merge pull request #9437 from 3nids/maplayertype_enum
create scope based enum for QgsMapLayer::LayerType >> QgsMapLayerType
2019-03-26 10:28:34 -05: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
Nyall Dawson
c282e95d1c Fix segfault on exit 2019-03-26 18:17:12 +10:00
henrik
584290c507 Fixed turned of testss 2019-03-26 18:17:12 +10:00
henrik
5c38ba3941 Decoupled tests by removing shared self-variables. 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
henrik
e8584c0cf4 Added tests for pointdisplacementlabels 2019-03-26 18:17:12 +10:00
henrik
6fb06738ec [FEATURE] [needs-docs] Point Displacement label distance factor
Adds label distance factor spinbox to Point Displacement symbology
window. Calculates label distance based on the current symbology
diagonal instead of a general maximum diagonal.

Replaces the hard coded distance "symbolDiagonal/2.0" with
"symbolDiagonal*mLabelDistanceFactor", where mLabelDistanceFactor is set
to the spinbox value.

 It's an old feature request (Point displacement labels adjustable
offsets "https://issues.qgis.org/issues/5945").
2019-03-26 18:17:12 +10:00
Alessandro Pasotti
e75308e700 Add test case for the layer store when re-adding a fixed layer 2019-03-25 15:03:46 +01:00
Blottiere Paul
5704f70d94 Add getDxf test 2019-03-25 09:28:03 +01:00
Blottiere Paul
240f1fe7b6 Add cpp test for server modules 2019-03-25 09:28:03 +01:00
Matthias Kuhn
9327834322
Merge pull request #9294 from lbartoletti/bugfix_21390_pointZ_snapping
Fix Z snapping for point.
2019-03-25 07:31:01 +01:00