Nyall Dawson
0d9b223856
Fix unused variable warning
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
d5664ed635
Clean up GUI for properties
2017-01-23 12:45:21 +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
934c7c9173
[FEATURE][composer] Data defined svg colors and outline width for
...
composer picture items
Especially useful when the picture is showing a north arrow!
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
ef3f61fc17
Fix sip subclassing for properties
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
4018863d37
Remove deprecated diagram field properties
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
a4ef9ad89c
Allow setting diagram properties collection
2017-01-23 12:45:21 +10:00
Nyall Dawson
83139cc40e
Remove currently unused diagram properties, add data defined
...
x/y position using properties system
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
43a328687d
Port diagrams to use properties
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
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
Denis Rouzaud
4c642ac664
fix typo
2017-01-20 15:17:58 +01:00
Denis Rouzaud
4c3968b9aa
more spelling fixes
2017-01-20 15:06:09 +01:00
Matthias Kuhn
eb7a235dc1
Print messages from QgsMessageLog to the console when testing
2017-01-19 14:41:04 +01:00
Matthias Kuhn
534cb9e738
Add QgsApplication.instance() to python bindings
2017-01-19 13:15:35 +01:00
volaya
5e479fc67e
[processing] always use only selected features in 'save selected features'
2017-01-19 10:33:52 +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
lbartoletti
01cd784ee7
[FEATURE][processing] Add overlay option to GridLine and GridPolygon
2017-01-19 16:49:35 +10:00
Nyall Dawson
d0a46972d4
Merge pull request #4002 from tudorbarascu/fixdescription
...
fix setRelationId description
2017-01-19 06:19:29 +10:00
Nyall Dawson
2183887759
Don't use canvas mapSettings when composer maps respond to layer changes
2017-01-19 06:08:44 +10:00
rldhont
07c54e5496
Merge pull request #4004 from dmarteau/wfs_as_module
...
WFS & WCS as module
2017-01-18 13:07:32 +01:00
Alexander Bruy
08e0eacfef
[processing] return string from selection type setting when necessary
2017-01-18 08:46:56 +02:00
Martin Dobias
90d233ad30
Remove draw() method from QgsRasterDataProvider interface ( #4017 )
...
It was redundant in the API - one always wants to use block() to get data
2017-01-18 13:32:26 +08: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
710a12cabd
Avoid use of composition map settings to set initial composer map extent
2017-01-18 12:30:47 +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
David Marteau
e17a7d4e21
Move wcs as service module
2017-01-17 22:02:02 +01:00
David Marteau
56b2f08865
Move wfs as service module
2017-01-17 17:21:25 +01: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
Nyall Dawson
e3ad5b1e3b
[composer] Remove more use of composition map settings
...
Use relevant composer map item CRS instead of composition mapsetting's
CRS. For items directly linked to a map (eg scalebar, legend) we
use that map's CRS, for others (eg labels, html items) we use the
composition's reference map CRS.
(Note that the CRS cannot be set for a map, and is still currently
linked to the canvas CRS. Fixing that is a future TODO.)
2017-01-17 13:23:12 +10:00
Denis Rouzaud
b119744773
replace cancelling, cancelled and cancellation by canceling, canceled and cancelation, respectively ( #4000 )
...
* replace cancelling and cancelled by canceling and canceled, respectively
see https://github.com/qgis/qgis3_UIX_discussion/issues/19
* replace cancellation by cancelation
2017-01-16 22:27:14 +01:00
Denis Rouzaud
0a63d1f2c2
[spellcheck] properly look into various cases and add more fixes"
2017-01-16 16:39:20 +01:00