Nyall Dawson
a6d3af7c26
Add method to read paletted color data from string
2017-04-03 12:07:50 +10:00
Nyall Dawson
bfe96214b2
[FEATURE] Add a color ramp combo to paletted raster renderer
...
Allows rapid recoloring of palette to match a color ramp
2017-04-03 12:07:50 +10:00
Nyall Dawson
b7cd9dcb56
Rework paletted raster renderer widget
...
- Switch to a real model
- Allow adding new rows and deleting multiple selected rows
- Allow changing colors inline in style dock (no modal color picker)
2017-04-03 12:07:50 +10:00
Nyall Dawson
a157db7627
Refactor QgsPalettedRasterRenderer to allow "gaps" in pixel values
...
Previously the renderer required that pixel values followed
sequential numerical order. This refactor allows values to
be skipped, so that only certain color index will be rendered.
2017-04-03 12:07:50 +10:00
Matthias Kuhn
fb91ed7395
Use "\since" instead of "@note added in"
2017-04-03 01:06:33 +02:00
Matthias Kuhn
59e288c38e
Update doc test for \since
2017-04-03 01:00:47 +02:00
Matthias Kuhn
16594da94c
Fix sipify override and inline definition combination
2017-04-02 23:37:17 +02:00
Matthias Kuhn
a609883cc0
Add %Feature support to sipify
2017-04-02 23:37:17 +02:00
Matthias Kuhn
68d8108ab3
Fix sipify constructor detection
2017-04-02 23:37:17 +02:00
Nyall Dawson
f044eeb597
Remove \brief from doxygen in sipify
2017-04-02 21:28:20 +10:00
Nyall Dawson
f1162f7884
Fix sipify annotations and inline definition combination
2017-04-02 21:19:52 +10:00
Nyall Dawson
d3daf60020
Convert doxygen notes and version added to sphinx style in sipify
2017-04-02 20:52:50 +10:00
Nyall Dawson
28a57c8f95
Remove ingroup and class from doxygen when creating sip docstrings
2017-04-02 20:30:22 +10:00
Nyall Dawson
bed74fc24a
Handle c++11 '= default' in sipify
2017-04-02 16:21:23 +10:00
Matthias Kuhn
5148b7accb
[sipify] Add name of source file to generated headers
2017-04-01 19:10:59 +02:00
Denis Rouzaud
9846b34ec3
add type and default values identifiers
2017-03-30 15:13:01 +02:00
Denis Rouzaud
15e4903890
sipify improvements
...
* add demo file and start a short doc
* fix some annotations
* do not display hidden line (SIP_SKIP, delete)
* use a defined var for SIP_SKIP
* remove constructor definition in header
* fix comment after method definition in header
* add a test for sipify itself
2017-03-30 15:13:01 +02:00
Denis Rouzaud
21be025d25
use sip includes rather than listing header to generate all sip files
2017-03-30 15:13:01 +02:00
Denis Rouzaud
a3bdd4405a
SIP test: use blacklist rather than whitelist
2017-03-30 15:13:01 +02:00
Denis Rouzaud
988c504d77
test auto-generated sip files on Travis
2017-03-30 15:13:01 +02:00
Martin Dobias
d0a36d35be
Support for moving of multiple vertices at the same time
...
Just use selection rectangle to select vertices and then click one vertex
from selection to move the whole group.
2017-03-30 18:10:46 +08:00
Nyall Dawson
636e9c5ea3
[FEATURE] Add geometry snapper modes to only snap end points of lines
...
Allows snapping of end points only, or end point to end point only
Also update processing algorithm to match
2017-03-30 15:52:49 +10:00
Nyall Dawson
ece3991dbe
[FEATURE] New class QgsInternalGeometrySnapper
...
Used for snapping geometries within a set of features to other
features from that same set.
Just like QgsGeometrySnapper, except that where QgsGeometrySnapper
requires a separate reference layer to snap to
QgsInternalGeometrySnapper snaps *within* a single layer. E.g.
allows you to close gaps within that layer.
2017-03-30 13:54:05 +10:00
Martin Dobias
0472a29f8c
Added test for dragging of selection rect to delete nodes
2017-03-29 19:29:22 +08:00
Martin Dobias
acebb97c4d
Remove debugging output to track down travis failure
2017-03-29 16:02:38 +08:00
Martin Dobias
14a00b70e8
Fix rubber band unit tests
2017-03-29 16:02:38 +08:00
Martin Dobias
eeab9a35fa
fixes after rebase
2017-03-29 16:02:38 +08:00
Martin Dobias
f8aaafe986
Looks like crs mismatch...?
2017-03-29 16:02:38 +08:00
Martin Dobias
7cf802dd4f
travis
2017-03-29 16:02:38 +08:00
Martin Dobias
3482a70fd7
More travis debugging
2017-03-29 16:02:38 +08:00
Martin Dobias
8e7bb3b672
Code cleanup + more testing
2017-03-29 16:02:38 +08:00
Martin Dobias
ae5651e41f
More unit tests
2017-03-29 16:02:38 +08:00
Martin Dobias
1c202e75fe
Added unit testing for the new node tool
2017-03-29 16:00:56 +08:00
Nyall Dawson
456fdc48a7
Fix Coverity divide by zero errors
2017-03-28 09:24:11 +10:00
Nyall Dawson
e55fbebf68
Add failing test to ensure that QgsAbstractGeometry.centroid
...
result matches that of GEOS
It doesn't, and reveals the the QGIS native centroid calculation
is quite broken
2017-03-26 14:34:51 +10:00
Nyall Dawson
631c7cd1dd
Port GEOS centroid tests to PyQGIS
2017-03-26 14:34:51 +10:00
Nyall Dawson
51035cfb67
Add optimised constructors for QgsLineString
...
Instead of requiring all linestrings to be constructed by
first creating QgsPointSequence (requiring creation or
conversion of points to QgsPointV2), allow construction
of LineStrings directly from vectors of values (fastest!)
or lists of QgsPoint.
Likely results in speedups for lots of geometry operations,
but using the same layer as earlier tested for densify
improvements the densify operation time dropped further
from 25 seconds to 15 seconds.
2017-03-25 20:44:31 +10:00
Nyall Dawson
345ce734c4
[composer] Correctly draw overview frame when map item CRS differs
2017-03-25 17:58:48 +10:00
Nyall Dawson
a769448e70
Also port processing densify to distance to c++
...
- Add QgsGeometry method to densify by distance
- Fix bug in processing algorithm which resulted in duplicate
vertices and incorrectly spaced extra vertices
2017-03-25 16:23:29 +10:00
Nyall Dawson
77e7693c48
Fix spelling errors in processing algorithm help
2017-03-25 16:23:29 +10:00
Nyall Dawson
5360b79174
[FEATURE] New API QgsGeometry::densifyByCount
...
Densifies a geometry by adding a specified number of vertices
to each segment
2017-03-25 15:07:16 +10:00
Matthias Kuhn
1ffa9ee7a6
Revert renaming of main layer-tree-group node
2017-03-23 15:29:28 +01:00
Matthias Kuhn
baa4c86262
Fix tests
2017-03-23 15:29:12 +01:00
Matthias Kuhn
f33aabd90a
Completely move layer order to core
2017-03-23 15:29:12 +01:00
arnaud.morvan@camptocamp.com
8385cd9f4c
Handle arrays comparison in QgsExpression
2017-03-22 17:48:40 +01:00
arnaud.morvan@camptocamp.com
eeb1283018
Handle arrays in QgsExpression::quotedValue
2017-03-22 17:48:12 +01:00
Nyall Dawson
746d288e33
Don't emit layerOrderChanged when removing layers
...
Otherwise it automatically enables the layer order panel
2017-03-22 13:01:32 +10:00
Nyall Dawson
a8e8eec95d
Convert almost all core connects to new style
...
Just a handful remain which for various reasons cannot
be converted
2017-03-22 10:03:43 +10:00
Nyall Dawson
b7d2b9fd72
Merge pull request #4283 from nyalldawson/filterrect
...
Remove QgsFeatureRequest::FilterRect
2017-03-22 07:38:53 +10:00
lbartoletti
fb3d07f3f5
[FEATURE] New class for triangle
...
Adds a new geometry class for Triangle geometries
Methods include orthocenter, bisectors, medians, medial, circumscribed (center,
radius), inscribed (center, radius)
Also adds make_triangle expression function for creating triangles
2017-03-21 18:50:47 +10:00