1403 Commits

Author SHA1 Message Date
Martin Dobias
0ea6a3d15f Support different indexing strategies in QgsSnappingUtils
Huge layers will not use all the memory - at the expense of slow queries
2015-01-20 10:21:55 +07:00
Martin Dobias
54e8493bc7 QgsPointLocator: make it possible to index just a part of layer 2015-01-20 10:21:55 +07:00
Martin Dobias
f8fc8a0a31 Final removals of QgsMapCanvasSnapper 2015-01-20 10:21:55 +07:00
Martin Dobias
4b8ea28262 Add QgsSnappingUtils::snapToCurrentLayer() + utility methods in QgsTolerance
Also added missing SIP wrappers for new classes QgsPointLocator and QgsSnappingUtils
2015-01-20 10:21:55 +07:00
Martin Dobias
83770dfd9e Hook snapping utils into QGIS interface
Now the new snapping engine is ues for add feature map tool
2015-01-20 10:18:39 +07:00
Sandro Mani
7b31a17e44 Fix infinite loop in QgsVectorLayer::deleteSelectedFeatures if removal of feature fails 2015-01-19 15:22:20 +01:00
Sandro Mani
40ad3b0993 [FEATURE]: Transactional editing for postgres layers (other datasources possible in the future). Funded by City of Uster 2015-01-19 15:22:20 +01:00
Nyall Dawson
1310b87081 Show recently used projections in QgsProjectionSelectionWidget 2015-01-19 22:57:46 +11:00
Martin Dobias
375dc32045 Make sure to update visibility presets if any layer's style name changes
Also adds signals to the QgsMapLayerStyleManager so others can watch the changes

This code has been funded by Tuscany Region (Italy) - SITA (CIG: 6002233F59)
and commissioned to Gis3W s.a.s.
2015-01-19 18:39:03 +07:00
Martin Dobias
5266fd97ee [FEATURE] Composer map - optionally store layer styles
There is a new check box that allows the user to tell whether a map should
keep the layer styles (it will store the state when the check box is checked).
The stored layer styles keep a snapshot of each layer's configuration
instead of just keeping name of the style.

This solves issues with styles and visibility presets in composer which were
not completely compatible.

This code has been funded by Tuscany Region (Italy) - SITA (CIG: 6002233F59)
and commissioned to Gis3W s.a.s.
2015-01-19 15:18:55 +07:00
Nathan Woodrow
6166eccc84 Add spacing above function editor combo. API docs for QgsLayerDefinition 2015-01-19 16:42:30 +10:00
Nathan Woodrow
8944ff7a48 Add group support for QLR files
Add class for handling QLR files. Add sip bindings

Funded by Nicholas Duggan
2015-01-19 14:25:15 +10:00
Martin Dobias
11d331dd66 Add QgsMapLayer::importNamedStyle() functions
Like this we do not need to use a temporary file to load a style
2015-01-16 14:14:41 +07:00
Nyall Dawson
ca4a60a6aa Fix redundant angle methods for QgsGradientFillSymbolLayerV2 2015-01-15 22:25:18 +11:00
Juergen E. Fischer
0ba232d1e8 dxf export: improve marker symbol export 2015-01-14 23:55:35 +01:00
Juergen E. Fischer
b49da36c7f * Save and restore visiblity state of embedded group layers (fixes #4097)
* Adds support for lists in custom properties
2015-01-13 14:55:03 +01:00
Martin Dobias
3711fd5899 WMS server: support multiple styles in GetStyles request
This code has been funded by Tuscany Region (Italy) - SITA (CIG: 6002233F59) and commissioned to Gis3W s.a.s.
2015-01-13 15:33:10 +07:00
Nathan Woodrow
d9042f590f Follow up 6a17a60ae2 - Fix error when passing usesgeometry to qgsfunction 2015-01-10 10:43:12 +10:00
Martin Dobias
4dead724f5 Allow multiple styles of layers in composer maps
When layer set is locked in composer map, also the styles associated with layers are kept.
As a result, a composition can contain maps of the same layer just with different styles.

Map settings and map renderer jobs have been improved to support temporary override of layer's style.
It is possible to pass to map settings which layers should have overridden style and map jobs
will temporarily replace the style (just for the rendering).
2015-01-09 21:48:15 +07:00
Martin Dobias
50e77a9d41 Added support for renaming of map layer styles 2015-01-09 21:48:15 +07:00
Sandro Santilli
e2e47d71c6 Add rotate and transform(QTransform) methods to QgsGeometry
Reimplement translate in terms of transform(QTransform).
Includes new unit test for rotate() and translate() methods.
Includes sip bindings update.
2015-01-09 12:37:00 +01:00
Martin Dobias
8b5587fe13 Improve the internals of map layer style manager
- style manager is always enabled (client code does not need to distinguish between enabled/disabled state)
- layers currently active style is stored only in QgsMapLayer - in style manager it has entry with no data (avoids duplication of data)

This also solves issues with visibility presets and styles when some presets do not have stored style
2015-01-09 17:04:26 +07:00
Martin Dobias
2144be0ac1 Add Python bindings for map layer style manager 2015-01-07 20:15:11 +07:00
Juergen E. Fischer
bff64fdef9 indentation update 2014-12-30 22:47:09 +01:00
Nathan Woodrow
1e7cc2ccbd Merge pull request #1634 from slarosa/usermap_about
Adds Developers Map in About dialog
2014-12-27 07:00:23 +10:00
Sandro Mani
2efda5def5 Add python bindings for added methods 2014-12-23 10:34:51 +01:00
Salvatore Larosa
9952fc8aa6 Add Developers Map in About dialog 2014-12-21 21:56:41 +01:00
Radim Blazek
d84af0d760 populating browser icons in threads moved to QgsDataItem 2014-12-12 12:28:07 +01:00
Nyall Dawson
cee539aae8 Add missing const to equality operator 2014-12-12 06:20:58 +11:00
Matthias Kuhn
2e972b13ba Render incremental rendering image at proper location
The old behavior was to render it at the currently visibleExtent based on the
map canvas. The job may however have been scheduled for a different extent and
therefore rendered at an improper location.
2014-12-11 12:20:03 +01:00
Nyall Dawson
bcc29ff5d0 Add methods to QgsDataDefined for reading and writing to XML 2014-12-10 19:53:16 +11:00
Denis Rouzaud
d65a6f73d4 Merge pull request #1624 from 3nids/cadtool_single
Advanced digitizing tools (aka CAD tools)
2014-12-09 10:23:42 +01:00
Sandro Santilli
b3953b8339 Export QgsMapSettings rotation API to python 2014-12-09 09:53:56 +01:00
Nyall Dawson
232aaaca66 [expressions] Make int/int return double results.
Also add a new "//" operator to perform integer division.
(fix #5153)
2014-12-06 16:36:42 +11:00
Nyall Dawson
7400106e41 [FEATURE] Evaluate expressions entered in QgsDoubleSpinBox
Allows entry of QGIS expressions into the spin box. The expression
is evaluated on enter or loss of focus and then discarded.

(refs #10544)
2014-12-05 20:39:09 +11:00
Nyall Dawson
8a182b7f34 Clean up QgsMapLayer scale based visibility api 2014-12-05 20:39:09 +11:00
Nyall Dawson
e887d075aa Correctly set band number for pseudocolor renderer widget
Previously the band was always reset to the first band when opening
the raster layer properties.
2014-12-04 16:15:36 +11:00
Denis Rouzaud
d39a854a2c advanced digitizing tools
this integrates advanced digitizing tools aka CAD tools in QGIS application and basically a port of CADinput plugin
* new class QgsMapToolAdvancedDigitizing shall be subsclassed if adv. digit. tools could be used in a map tool
* QgsAdvancedDigitizingDockWidget handles the interaction with the user and also perform the constraints (filters events)
* QgsAdvancedDigitizingCanvasItem paints construction lines on the canvas
2014-12-03 16:33:59 +01:00
Martin Dobias
b278ea1a93 API: Added support for bulk loading of spatial index
This is much faster way of initializing a spatial index. From python it is as simple as
>>> index = QgsSpatialIndex( layer.getFeatures() )

From a simple test with 50K points in a memory layer:
- bulk loading ~ 100 ms
- inserting features ~ 600 ms

The index tree should be in theory also better constructed and may result in faster lookups.
2014-12-03 10:59:28 +07:00
Matthias Kuhn
a92d1a6e31 QgsExpression: some const fixes 2014-11-30 10:34:19 +01:00
Juergen E. Fischer
e48a6f642f indentation update [ci skip] 2014-11-30 10:26:39 +01:00
Juergen E. Fischer
98c0771b1a update scripts/fix_allows_to.sh and run it 2014-11-30 01:42:27 +01:00
Nathan Woodrow
391d105ce0 [Expression] Don't unregister function if not registering 2014-11-30 00:40:22 +10:00
Nathan Woodrow
6a17a60ae2 Move qgsfunction to qgis.core.
Add new register_function method when not using decorator
Wrap function call in try block to catch and report errors
2014-11-29 18:37:26 +10:00
Nyall Dawson
949185179e [composer] Fix refresh HTML item always using cached copy (fix #11747) 2014-11-27 13:15:37 +11:00
Nyall Dawson
fa1e8032e7 [symbology] Add method for retrieving symbol layers as list 2014-11-24 20:45:10 +11:00
Nyall Dawson
8039895db2 Add support for weighting points by expression to heatmap renderer 2014-11-23 21:48:41 +11:00
Nyall Dawson
802a4acdba Add an invert checkbox for heatmap renderer 2014-11-22 20:02:54 +11:00
Nyall Dawson
727747658b [FEATURE] Live heatmap renderer
Allows for live, dynamic heatmaps for point layers. Options include
specifying heatmap radius in pixels, mm or map units, choice of
color ramp, and a slider for selecting a tradeoff between render
speed and quality.
2014-11-22 13:03:54 +11:00
Juergen E. Fischer
9ceb5ceab6 sip sync 2014-11-21 01:17:21 +01:00