3126 Commits

Author SHA1 Message Date
Jorge Gustavo Rocha
8b36ad5b90 Updated Qt connections to the new style qgis/QGIS-Enhancement-Proposals#77
Changed isDeleteStyleFromDBSupported to isDeleteStyleFromDbSupported
2017-02-05 19:35:47 +00:00
Jorge Gustavo Rocha
738fbd455b revert the SIP deleteStyleFromDatabase signature 2017-01-31 12:09:48 +00:00
Jorge Gustavo Rocha
e649280601 improve deleteStyleFromDatabase signature 2017-01-31 11:31:14 +00:00
Jorge Gustavo Rocha
8e989c1e38 improve deleteStyleFromDatabase signature 2017-01-31 10:46:49 +00:00
Jorge Gustavo Rocha
6d6f288102 make deleteStyleFromDatabase consistent with other vectorlayer's methods 2017-01-30 23:48:20 +00:00
Jorge Gustavo Rocha
a4637a6af5 Simple tests for style load, insert and remove from Postgis provider 2017-01-30 18:05:13 +00:00
Nyall Dawson
a188d14f48 Remove map settings parameter from QgsComposition
Breaks the hard link between canvas and compositions!

Fix #11077
2017-01-24 14:32:08 +10:00
Juergen E. Fischer
6a56cb0dd0 updates and fixes for windows qt5/py3 build 2017-01-24 01:25:59 +01:00
Nyall Dawson
e06192ec3f Use consistent names for data defined property collections 2017-01-23 12:45:22 +10:00
Nyall Dawson
2966a16530 Cleanups, fix tests 2017-01-23 12:45:22 +10:00
Nyall Dawson
f0f01709bc Fix failing test 2017-01-23 12:45:22 +10:00
Nyall Dawson
2c241755f8 Fix layer expression scope sometimes not appended to render
context expression scopes
2017-01-23 12:45:22 +10:00
Nyall Dawson
17d4d3a8a4 Fix some failing tests 2017-01-23 12:45:22 +10:00
Nyall Dawson
f1b2940623 Fix tests 2017-01-23 12:45:22 +10:00
Nyall Dawson
f3ac8bc2eb Rename method which causes spell check issues 2017-01-23 12:45:22 +10:00
Nyall Dawson
ffaa40edc4 Refactor properties
Remove QgsAbstractProperty and subclasses, and instead use a single
QgsProperty class which covers the use of QgsAbstractProperty
and its subclasses. This simplifies the API and avoids pointer
handling. QgsProperty is implicitly shared for memory efficiency
and inexpensive copies.
2017-01-23 12:45:21 +10:00
Nyall Dawson
90e80c1353 Stronger definitions of properties in collections
Instead of defining the suitable field types and values for
properties when registering them to a data defined button,
now properties are fully defined when the valid
property keys are defined.
2017-01-23 12:45:21 +10:00
Nyall Dawson
6c53ba25e3 [FEATURE][composer] Data defined scalebar colors and line width 2017-01-23 12:45:21 +10:00
Nyall Dawson
ec9ba9c2a2 [FEATURE][composer] Data defined legend titles and column count
(fix #11913)
2017-01-23 12:45:21 +10:00
Nyall Dawson
d6c7569dda [FEATURE][composer] Data definable item frame and background colors 2017-01-23 12:45:21 +10:00
Nyall Dawson
ad2324021d Port symbology and composer to properties framework 2017-01-23 12:45:21 +10:00
Nyall Dawson
43bbf68943 Port labeling to properties framework 2017-01-23 12:45:21 +10:00
Nyall Dawson
93db66ed1f Allow properties/collections to be prepared in advance 2017-01-23 12:45:21 +10:00
Nyall Dawson
53ba1a1f10 Add a common interface for QgsPropertyCollection/QgsPropertyCollectionStack 2017-01-23 12:45:21 +10:00
Nyall Dawson
336b603b3a Add support for more data definable properties to diagrams:
- Distance
- Priority
- ZIndex
- IsObstacle
- Show
- AlwaysShow
- Diagram Start Angle
2017-01-23 12:45:21 +10:00
Nyall Dawson
07315bfedd Add tests for data defined diagram properties 2017-01-23 12:45:21 +10:00
Nyall Dawson
c23de083ce Setting a property to null in collections removes property 2017-01-23 12:45:21 +10:00
Nyall Dawson
f1c1589550 Initial implementation of property system 2017-01-23 12:45:21 +10:00
Nyall Dawson
9124100fb6 Python formatting updates 2017-01-23 12:25:19 +10:00
Nyall Dawson
4a800a13c2 Fix tests 2017-01-22 21:29:23 +10:00
Nyall Dawson
46f2ea13ee [FEATURE] Add inches as a measurement choice for symbology/labeling
"Make imperial great again!"
2017-01-22 21:29:23 +10:00
Nyall Dawson
b7d89a73af Consolidate all render context unit conversion to single methods
within QgsRenderContext

Fix invalid conversions, update unit tests
2017-01-22 21:29:23 +10:00
rldhont
ad963e69c3 Merge pull request #3996 from jgrocha/literal
SLD parsing: handling ogc:Literal within CssParameter
2017-01-21 10:55:34 +01:00
Nyall Dawson
56fd6e0904 Revert "Reenable full task manager tests following b45469f"
This reverts commit dd614451c9586ea598f93aab56a97a00f409a6cf.
2017-01-21 15:01:02 +10:00
Denis Rouzaud
4c3968b9aa more spelling fixes 2017-01-20 15:06:09 +01:00
Matthias Kuhn
85146ca4be Add description for starting python tests in gdb 2017-01-20 12:23:23 +01:00
Nyall Dawson
dd614451c9 Reenable full task manager tests following b45469f 2017-01-20 08:26:56 +10:00
rldhont
d1f233d083 [Server] SELECTION tests
Update GetMap SELECTION test
Add GetPrint SELECTION test

!GetPrint SELECTION has to be fixed!
2017-01-19 16:41:43 +01:00
Martin Dobias
ff8d912147 Make the one band raster creation method return data provider 2017-01-19 15:46:46 +08:00
Martin Dobias
7b27079de9 Convenience API call to create empty raster file 2017-01-19 15:46:46 +08:00
Martin Dobias
15cd8331ac Make setEditable() return true/false to indicate success/error 2017-01-19 15:46:46 +08:00
Martin Dobias
f6f6ebdb44 [FEATURE] API to enable/disable editing of raster data
To create a 2x2 raster block with one byte per pixel:

```
block = QgsRasterBlock(Qgis.Byte, 2, 2)
block.setData(b'\xaa\xbb\xcc\xdd')
```

To overwrite existing raster data at position 0,0 by the 2x2 block:

```
provider.setEditable(True)
provider.writeBlock(block, band, 0, 0)
provider.setEditable(False)
```
2017-01-19 15:46:46 +08:00
Jorge Gustavo Rocha
65c01775f6 DDL update: saving layer styles on databases
Fix #11421
2017-01-18 20:02:48 +00:00
Nyall Dawson
df3fdf52a8 Merge pull request #4005 from nyalldawson/comp_mapsettings
Remove some more QgsComposition::mapSettings use, also support different CRS in composer map items
2017-01-18 12:57:46 +10:00
Nyall Dawson
a3dd380d35 [needs-docs] Composer maps default to a "use project CRS" setting
And overriding projection is only done if user has manually
chosen a different CRS from the list.

This means that templates and compositions in server can still
adapt to follow the project CRS, but if desired specific map
items (eg an overview map) can use the CRS override to always
show in a particular CRS.
2017-01-18 12:30:47 +10:00
Martin Dobias
433d04b68e QgsRasterBlock::data() for efficient access to pixel data also in Python (#4009)
Also adds some unit tests and API cleanups
2017-01-18 09:52:45 +08:00
Nyall Dawson
6a4d605256 Fix some test failures 2017-01-18 07:38:06 +10:00
Nyall Dawson
9a6d714061 [FEATURE][composer] Allow choice of CRS for map items
This allows the CRS for map items to differ from the canvas/project
CRS. It also allows different map items to have different CRS,
eg an overview map can be set to a different CRS to the main map.

An unfortunate side effect of this change and the ongoing work
to separate compositions from canvas is that datum transforms
are no longer supported in composer. This cannot be fixed until
the datum transform store is rewritten to not depend on canvas
(ie, it's also broken for upcoming multi-canvas work)
2017-01-17 19:18:47 +10:00
Nyall Dawson
305f9f0e98 Remove some more QgsComposition::mapSettings use 2017-01-17 15:44:46 +10:00
Jorge Gustavo Rocha
5c2fec325a SLD parsing: handling ogc:Literal within CssParameter 2017-01-17 01:39:01 +00:00