1
0
mirror of https://github.com/qgis/QGIS.git synced 2025-03-26 00:08:20 -04:00

1146 Commits

Author SHA1 Message Date
Nyall Dawson
a49bf9f68f Unit tests for item opacity 2018-12-11 09:45:37 +10:00
Nyall Dawson
733d4ed578 Test masks 2018-12-07 08:08:52 +10:00
Nyall Dawson
048d526542 Add unit tests, standardise method names 2018-12-07 08:08:52 +10:00
Nyall Dawson
a97d335f31 Fix tests, test mask updates 2018-12-07 08:08:52 +10:00
Nyall Dawson
58219d66f8 Test mask updates 2018-12-06 09:22:50 +10:00
nirvn
c6425338ee [FEATURE] Raster image marker 2018-12-05 15:44:44 +07:00
nirvn
60442980dd Add dox comment, fix travis 2018-12-05 11:14:13 +07:00
Nyall Dawson
c1df802769 Add method to QgsImageCache to retrieve original image size 2018-12-05 11:14:13 +07:00
Nyall Dawson
84838d1ec6 [FEATURE][API] Add a content cache for raster images
This new class QgsImageCache is the equivalent of QgsSvgCache
but for raster images.

QgsImageCache stores pre-rendered resampled versions of raster
image files, allowing efficient reuse without incurring the
cost of resampling on every render.

Additionally, it offers the other benefits QgsSvgCache has,
such as thread safety, ability to transparently download remote
images, and support for base64 encoded strings.
2018-12-05 11:14:13 +07:00
Nyall Dawson
4bca7838bf [processing] Add method for providers to specify a different list
of supported output formats when an output has no geometry
2018-12-03 18:11:24 +10:00
Blottiere Paul
51a27b31b1 Update tests 2018-11-29 11:49:58 +00:00
Nyall Dawson
c5549bea48 Update test mask 2018-11-28 08:27:22 +10:00
Martin Dobias
d4ef55dadb
Merge pull request from wonder-sk/terrain-map-themes
[FEATURE] Optionally use a map theme to render terrain textures
2018-11-22 09:24:27 +01:00
Martin Dobias
afd3525297 Add test for terrain theme + do not use project singleton 2018-11-21 16:29:42 +01:00
Alessandro Pasotti
0d696ef1e5 [server] Fix invalid xml in getfeatureinfo
Fixes  - error in parsing WMS GetFeatureInfo as XML

Also s/meta/META/ for consistency with all other tags
2018-11-20 18:26:49 +01:00
Tudor Bărăscu
2cf8f74c71 test server rendering debian buster bug 2018-11-16 08:49:55 +02:00
Nyall Dawson
5c27b7da50 [FEATURE] Binary blob support for OGR provider
Instead of converting binary fields to truncated strings, we instead
store their contents as QByteArray values, allowing the original binary
content to be retrieved.

This allows for plugins and scripts to utilise binary fields,
such as extracting their contents.
2018-11-13 07:14:19 +10:00
Nyall Dawson
8703fb219b [FEATURE][API] New class QgsExifTools
Contains utilities for retrieving the geotag from images and
for setting an image's geotag.

Working with geotags (before this class!) is super-annoying
and fiddly and relies on either parsing command line tools
or depending on non-standard Python libraries which are
not available everywhere, and often very difficult for users
on certain platforms to get installed and working correctly.

With this class we have stable methods for geotag getting/setting
which are universally available and can be used safely
by plugins and scripts.
2018-11-13 07:13:36 +10:00
Nyall Dawson
30214538c2 [FEATURE] Add option to simple line and marker line to only
render exterior ring or interior rings

This option is shown whenever a simple line symbol or
marker line symbol is used as part of a fill symbol for
rendering polygons.

The default behavior is to render both interior and exterior
rings, but this new setting allows users to set the symbol
layer to render only for the exterior ring OR only
for interior rings.

This allows for symbolisation which wasn't directly possible
before, such as a marker line with markers for interior
rings angled toward the interior of the polygon.

Sponsored by the German QGIS User Group

Fixes 
2018-11-09 19:06:48 +10:00
Nyall Dawson
73d0ced5df [FEATURE] Add option to force right-hand-rule during polygon symbol rendering
This new option, available under the "Advanced" button for fill symbols,
allows forcing rendered polygons to follow the standard "right hand
rule" for ring orientation (where exterior ring is clockwise, and
interior rings are all counter-clockwise).

The orientation fix is applied while rendering only, and the original
feature geometry is unchanged.

This allows for creation of fill symbols with consistent appearance,
regardless of the dataset being rendered and the ring orientation
of individual features.

Refs 
2018-11-09 19:06:48 +10:00
Nyall Dawson
1b79b9a140 [FEATURE] force_rhr expression function
Forces polygons to follow the right hand rule, in which the area that
is bounded by a polygon is to the right of the boundary. In particular,
the exterior ring is oriented in a clockwise direction and the
interior rings in a counter-clockwise direction.
2018-11-09 19:06:48 +10:00
Alessandro Pasotti
ba4981a1f4 Move change data source under filter 2018-11-08 11:30:06 +01:00
Alessandro Pasotti
c74ce886dc Disable "Change data source..." action if layer is editable 2018-11-08 09:22:33 +01:00
Alessandro Pasotti
9af0719ff2 Bad layers: added tests for subset string and groups 2018-11-06 14:58:04 +01:00
Alessandro Pasotti
7db1d4e8b4 Added test project with the bad layers (not used by tests)
but still useful for manual tests
2018-11-06 10:28:49 +01:00
Alessandro Pasotti
ba3ccca2dd Add rule-based and categorized styles to the bad layers test 2018-11-06 10:27:07 +01:00
Alessandro Pasotti
7a259c6ea5 Better handling of invalid relations ...
- do not add them to the manager dialog
- do not add relations to not existent layers (but keep relations to invalid layers)
2018-11-05 10:26:39 +01:00
Alessandro Pasotti
bc424d09c1 Store original style as QDomDocument instead of an XML string 2018-11-05 10:26:39 +01:00
Alessandro Pasotti
d46d765d58 Restore handle bad layers dialog original behavior 2018-11-05 10:26:39 +01:00
Alessandro Pasotti
8493636f18 Data source select dialog now accepts a model 2018-11-05 10:26:39 +01:00
Alessandro Pasotti
17433181aa Fix raster style restore when setDataSource 2018-11-05 10:24:35 +01:00
Alessandro Pasotti
8d9d52d128 Add test data for relations 2018-11-05 10:24:35 +01:00
rldhont
b64e72a89d [Bugfix][Server] Use Project selection color in GetPrint 3.4 2018-10-31 09:38:28 +01:00
rldhont
6249b07f7c
Merge pull request from rldhont/server-reactivate-print-selection-3
[Server] Reactivate the capability to print selection with Server 3.4
2018-10-26 14:23:09 +02:00
rldhont
c47c0ef7d5 [Server][Tests] Update WMS GetPrint Selection 2018-10-26 11:36:28 +02:00
Nyall Dawson
f0735d9171 Update test masks 2018-10-26 15:03:54 +10:00
Matthias Kuhn
dc334ac028
Merge pull request from signedav/json_tests
QgsServer Tests for JSON fields
2018-10-25 16:41:40 +02:00
rldhont
eae047e9dd [Server][Tests] Update WMS GetMap Selection
The selection color is read from the project and apply to the map.
2018-10-25 16:40:53 +02:00
Peter Petrik
b0bd629336 fix : render mesh arrows also on the edge of the canvas 2018-10-25 13:16:17 +02:00
signedav
ba1fe9de0e remove username/password in db connection in test project 2018-10-25 11:40:44 +02:00
Blottiere Paul
e25a452d17 Add unit test 2018-10-24 00:21:53 +02:00
Denis Rouzaud
49e8e86029 add rendering tests for HiDPI (device pixel ratio) 2018-10-23 16:25:23 -04:00
Nyall Dawson
f00e43d3c2 [layouts] Hack around inconsistent subclassing of layout items by sip
Sometimes, calling some layout methods, results in sip being inable
to downcast the items to their correct type, resulting only
in a QgsLayoutItem object.

This works around the problem, albeit in an incredibly hacky way.
2018-10-20 06:19:34 +10:00
signedav
c7c7204252 put extra default back 2018-10-18 15:37:31 +02:00
signedav
4f55e9d8a2 server tests for json types in postgres 2018-10-18 09:18:28 +02:00
Blottiere Paul
c3a41bc2fa Add unit test for polygon tolerance 2018-10-15 13:29:25 +01:00
Blottiere Paul
5765d49465 Add unit test for line tolerance 2018-10-15 10:40:27 +01:00
Blottiere Paul
6fce7853ca Add unit test for point tolerance 2018-10-15 09:30:59 +01:00
Nyall Dawson
0f056b500a Fix line pattern fill symbol corruption with negative angles 2018-10-13 06:31:56 +10:00
Nyall Dawson
5b4ed16cf9 Fix line pattern fill offsets are always treated as positive,
even when offset is negative
2018-10-13 06:31:56 +10:00