7783 Commits

Author SHA1 Message Date
David Signer
e89ebf1b69 proper use of category tags - use of all tag as default in filtering 2019-08-29 08:26:28 +02:00
David Signer
8c9f643e0b - removed the modes from QgsStoredExpressionManager and do the categorization over category tags
- use QStrings instead of QUuids in QgsStoredExpression
- docs, style and beautifications
2019-08-29 08:26:28 +02:00
David Signer
d081cd9a92 some tests for QgsStoredExpressionManager 2019-08-29 08:26:28 +02:00
Nyall Dawson
19231331ba Actually properly revert cmake test changes 2019-08-29 15:16:16 +10:00
Nyall Dawson
aefca0f579 Indentation 2019-08-29 13:18:58 +10:00
Nyall Dawson
ddbb1b175f [FEATURE] Allow array values as a valid result for data defined offset
or size properties

Previously only string values of the format 'x,y' would be permitted. But
I've seen MANY bug reports and questions about this, so also allow
arrays of doubles as a valid result. E.g. "array(3,5)". In any case, it's
just nicer.

Fixes #31444
2019-08-29 13:18:58 +10:00
Nyall Dawson
60e2b70ee3 Rework layout picture test to avoid need for image resources 2019-08-29 11:03:47 +10:00
Nyall Dawson
12dae94d66 Revert changes to core test cmake configuration 2019-08-29 11:03:47 +10:00
Denis Rouzaud
9b55eb2cbe
Merge pull request #31460 from nyalldawson/travis_t
Partially revert 596ffd06
2019-08-28 11:14:50 +02:00
Denis Rouzaud
b4635f53ed
fix condition 2019-08-28 10:34:54 +02:00
Denis Rouzaud
8467b7f506
fix order 2019-08-28 10:04:58 +02:00
Denis Rouzaud
8bc4052a11
option to add compiled resources to executable 2019-08-28 09:56:04 +02:00
Denis Rouzaud
f453793d19
fix test name 2019-08-28 09:13:51 +02:00
Denis Rouzaud
a58d7845e3
use AUTORCC 2019-08-28 09:11:38 +02:00
Nyall Dawson
377b4d7dc8 Unit tests for dynamic grid interval 2019-08-28 14:12:28 +10:00
Nyall Dawson
88c66b805f Unit tests for data defined grid 2019-08-28 14:12:28 +10:00
Nyall Dawson
0900831c8a Use map expression context as basis for map grid expression context
Allows use of map related variables like @map_scale, @map_extent_width,
etc in layout map grid data defined expressions
2019-08-28 14:12:28 +10:00
Nyall Dawson
228eb3fecc Partially revert 596ffd06
Just to see if this is throwing off Travis...
2019-08-28 12:47:53 +10:00
Nyall Dawson
760f93fa74 [FEATURE] Expose font kerning setting to text format widget/label settings
Allows users to control whether label fonts are kerned or not
2019-08-28 12:22:31 +10:00
Nyall Dawson
11a4bbfa57 Fix crash when using format function with no arguments
Fixes #31425
2019-08-28 05:20:01 +10:00
Ismail Sunni
b9978d53d1 [FEATURE][3D] Billboard Rendering for Points (#31308)
* Add button to change billboard symbol.

* Add shaders for billboards.

* Add billboard material class.

* Add sample billboard image.

* Add dummy handler for billboard.

* Add billboard geometry class.

* First working version of 3D point as billboard.

* Make selected feature bigger.

* Use default symbol preview as billboard.

* Update billboard when changes the viewport size.

* Use QgsTerrainTextureImage for adding image to texture.

* Show better quality of billboard default symbol.

* Promote QgsSymbolButton not working.

* Add QgsSymbolButton properly.

* Add seTexture2DFromSymbol.

* Use default symbol

* [On Progress] Get symbol from the QgsSymbolButton.

* [On progress] failed to change the symbol

* Fix billboard fragment shader for macOS

* Better transparency handling.

* Use size from the symbol.

* Add set layer for 3d billboard symbol.

* Set billboard size from the symbol pixel size * 20

* Use size from the image.

* [Debug] set white symbol to success kid, it work when previous billboard is success kid.

* Use store and restore symbol from Nyall.

* Remove unrelated code.

* Apply random extent to fix the bug, from Martin.

* Remove add mesh entities for billboard.

* Hide material and transformation widget for billboard.

* Remove add scene entities for billboard.

* Add selected as parameter in drawPreviewIcon.

* Add QgsMarkerSymbol to store the symbol in billboard

* Put billboard symbol in point3dsymbol serialization.

* Add billboard height in the UI.

* Set height for billboard.

* Store billboard height separately. Perhaps better to use existing transform.

* Set height of billboard to TY.

* Flipped image for billboard symbol.

* Add helper function to set billboard function.

* Generate billboard transform from general transform.

* Use static dpi for context size.

* Remove debug message.

* Use Qgs3DRenderContext for selection color and dpi from QgsApplication.

* Remove unnecessary file and code.

* Remove commented iut code.

* Add documentation of new classes.

* Fix banned keywords.

* Add missing parameter's documentation.

* Address PR review.

* Use context from readXML.

* Remove one line function.

* Fix billboard size.

* Make some functions private, remove unused function.

* Use unique_ptr for the ownership.

* Use unique_ptr for default symbol to avoid memory leak.

* Add parent to texture2D.

* Fix documentation.

* Add copy constructor.

* Fix documentation.

* Remove documentation warning.

* Fix sip error.

* Add unit test for billboard rendering.

* Set ambient to not transparent for measurement line.

* Add dpi in the Qgs3DMapSetting

* Update billboard rendering unit test.

* Remove layer from 3d point widget since it's not supported yet.

* Addressing PR review from Martin.

* Attach dom directly for the billboard symbol.

* Remove unused constructor for point3dsymbol.

* Use stroke width ratio for solving big stroke width.

* Update unit test for rendering with some stroke color.

* Fix typo.
2019-08-27 10:04:56 +02:00
Nyall Dawson
a0e11d5975 Add oracle transaction unit tests 2019-08-27 13:23:29 +10:00
Nyall Dawson
147afbebb5 Make Oracle tests more robust 2019-08-27 13:23:29 +10:00
Nyall Dawson
10c5b2f9db Replace paths pointing to inbuilt data folder with "inbuilt:" prefix
during project write, and redirect paths beginning with "inbuilt:" prefix
to actual local install folder during project read

Allows projects using data like the built-in world map layer to
work correctly across different installs
2019-08-26 19:27:14 +10:00
Denis Rouzaud
f578216919
modify editor widget wrappers to handle additional fields (#31270) 2019-08-26 08:53:37 +02:00
Julien Cabieces
5b71e21613 [FEATURE] [needs-docs] Add circular data dependencies (#30947)
* [FEATURE] [needs-docs] Add circular data dependencies
2019-08-26 08:36:07 +02:00
Denis Rouzaud
2dc1f9f3c4
Merge pull request #31355 from 3nids/featurelist_compoundkeys
allow QgsFeatureListComboBox to handle multiple keys
2019-08-26 08:25:46 +02:00
Jürgen Fischer
596ffd06fd
Fix layout picture item test (alternate fix to #31382) (#31383)
* Fix layout picture item test (alternate fix to #31382)
* doxygen: add pointer to QgsProperty::value() to QgsAbstractPropertyCollection::value()
2019-08-24 23:49:22 +02:00
Denis Rouzaud
cab11fe919 add method to set extra identifier values to Null and embryon of test 2019-08-23 16:17:37 +02:00
Denis Rouzaud
65cfaa53e0 avoid deprecation warnings/errors 2019-08-23 08:17:24 +02:00
Nyall Dawson
24fb1196c5 [needs-docs] Revise QgsPathResolver::setPathPreprocessor API
Allow path preprocessors to be chained and don't force replace
any existing ones.

Processors can be removed via a call to QgsPathResolver::removePathPreprocessor,
using the unique ID returned by the original call to setPathPreprocessor
2019-08-23 06:35:12 +10:00
Nyall Dawson
77f7988496 Update test 2019-08-23 06:33:47 +10:00
Nyall Dawson
9210478998 Update test mask image 2019-08-23 06:33:47 +10:00
Alessandro Pasotti
a092a82b52 New ctors for connections interface
Tries to make it clearer what are the use cases for the two
constructors (name and uri).
2019-08-21 15:45:21 +02:00
Nyall Dawson
09785d653c Add unit test for custom groups 2019-08-21 20:33:02 +10:00
Nyall Dawson
94921f483b Don't export features for layers set to skip 2019-08-21 20:33:02 +10:00
Nyall Dawson
2ca302999d [FEATURE] "Center of segment" placement mode for marker and hash line symbol layers
Adds a new placement option to place markers/hash lines at the center
point of individual line segments

Refs #29785
2019-08-21 19:41:58 +10:00
Nyall Dawson
b3e4c28505 Fix unit test 2019-08-21 05:15:04 +10:00
Nyall Dawson
9116907eca Bounds polygon must be in PDF units 2019-08-21 05:15:04 +10:00
Nyall Dawson
edf81aae3d Add API to handle non-rectangular georeferenced regions in geopdf pages 2019-08-21 05:15:04 +10:00
Alessandro Pasotti
0897b4e7fe
Merge pull request #31299 from elpaso/server-python-catch-plugins-exceptions
Server: catch Python exceptions from plugins
2019-08-20 13:50:19 +02:00
Alessandro Pasotti
c9c2d3ed27 Server API: simplify contentTypes handling and allow overrides 2019-08-20 12:22:32 +02:00
Nyall Dawson
763e2ef94b Unit tests for theme based layout rendering feature collection 2019-08-20 14:58:14 +10:00
Nyall Dawson
f47ab549a2 If a layout map is set to follow a particular theme, don't iterate over
the export themes for that map

Otherwise it breaks the ability to have inset maps during iterated theme exports
2019-08-20 14:58:14 +10:00
Nyall Dawson
c8a368f598 Start prepping for group-based output, shuffle tests so that some work on GDAL < 3 2019-08-20 14:58:14 +10:00
Nyall Dawson
8459112cd3 Start on tests - todo - handle map theme in feature registration! 2019-08-20 14:58:14 +10:00
Nyall Dawson
39dc3147ef More tests 2019-08-20 14:58:14 +10:00
Nyall Dawson
a3d60751d7 Update export layer names 2019-08-20 14:58:14 +10:00
Nyall Dawson
5a252a3b81 Expose map theme info to export layer details 2019-08-20 14:58:14 +10:00
Nyall Dawson
f49389d751 [layouts] API framework to allow rendering multiple map themes to layered exports 2019-08-20 14:58:14 +10:00