8667 Commits

Author SHA1 Message Date
Nyall Dawson
e1e1f0d514 Strip \a from doxygen comments in sipify 2017-04-03 13:18:36 +10:00
Nyall Dawson
5813eb132b Modernise CharacterWidget API, move to sipify 2017-04-03 13:18:36 +10:00
Nyall Dawson
9b3539ab07 Update sip files 2017-04-03 13:18:36 +10:00
Nyall Dawson
e8ef91ce98 Cleanup QgsRasterDataProvider/QgsRasterLayer progress reporting
Instead of progress changed signals on the provider/layer level,
instead use QgsFeedback arguments for methods which previously
emitted progress changed signals
2017-04-03 12:08:08 +10:00
Nyall Dawson
e400ab6249 Allow cancelation of raster stats/histogram operations 2017-04-03 12:08:08 +10:00
Nyall Dawson
d03844d24e [FEATURE] Allow classifying paletted renderer using unique values
from a raster layer

Adds an easy way to style discrete rasters such as landuse classes
using the Paletted renderer. Just select the Paletted renderer,
pick a band, then hit the "Add Unique Values" button. The unique
pixel values will be fetched from the layer and a color assigned
to each using the currently selected color ramp.

Fix #14845

Sponsored by
- Stéphane Henriod
- Satelligence (http://satelligence.com/)
- Bird's Eye View (https://www.birdseyeviewgis.com/)
- + other anonymous backers
2017-04-03 12:08:08 +10:00
Nyall Dawson
c8b728a361 No lies! 2017-04-03 12:08:07 +10:00
Nyall Dawson
7eb63d99dc [FEATURE] Implement saving paletted raster renderer color tables
Use the .clr/gdal file format, but add the labels on the ends of
the lines. Seems other importers like ArcMap just ignore these.
2017-04-03 12:07:50 +10:00
Nyall Dawson
d542a1a442 Add method to load paletted renderer classes from file 2017-04-03 12:07:50 +10:00
Nyall Dawson
a6d3af7c26 Add method to read paletted color data from string 2017-04-03 12:07:50 +10:00
Nyall Dawson
93cfde0c09 Enable reordering of paletted raster entries 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
beb185a72e Update sipify to use the "\since" tag 2017-04-03 01:31:44 +02:00
Matthias Kuhn
50ca79ef43 Add some remaining \since tags 2017-04-03 01:28:50 +02:00
Matthias Kuhn
fb91ed7395 Use "\since" instead of "@note added in" 2017-04-03 01:06:33 +02:00
Nyall Dawson
b55e4b9abd Add qgsi->qgis to spell check 2017-04-03 08:55:07 +10:00
Matthias Kuhn
a9b5599377 Sipify QgsPropertyTransformer 2017-04-02 23:37:17 +02:00
Matthias Kuhn
4cfb60796e Sipify QgsConditionalStyle 2017-04-02 23:37:17 +02:00
Matthias Kuhn
d76bca0ade Sipify QgsClipper 2017-04-02 23:37:17 +02:00
Matthias Kuhn
f4f45bf6c6 Autogenerate more sip files 2017-04-02 23:37:17 +02:00
Matthias Kuhn
a609883cc0 Add %Feature support to sipify 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
0c08fb3b35 More sipify blacklist removal 2017-04-02 21:24:19 +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
f831a3c1a2 Remove processing sip bindings from sip blacklist 2017-04-02 17:13:07 +10:00
Matthias Kuhn
5148b7accb [sipify] Add name of source file to generated headers 2017-04-01 19:10:59 +02:00
Matthias Kuhn
22272c65a5 Improve sip bindings 2017-03-31 11:22:32 +02:00
Matthias Kuhn
6208986852 Autogenerate some sip files 2017-03-31 11:22:32 +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
a44eb4d7b0 use dedicated header for QgsAttributes 2017-03-30 15:13:01 +02:00
Denis Rouzaud
b0564becfd also comment methods
fix comment starting on first line of block
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
7b08608f7f sipify QgsVectorLayer, QgsFeature 2017-03-30 15:13:01 +02:00
Denis Rouzaud
77d7236a93 sipify improvements
* remove enum value assignments
 * remove deleted functions
 * remove private members
 * remove function bodies
 * remove keywords (override, inline)
 * comment out but print SIP_SKIP
 * allow use of #if(n)def SIP_RUN and remove code in #else statements

 * fix PyName
 * fix SIP_SKIP

 * add a list of auto-generated sip files and a script to build them at once
2017-03-30 15:13:01 +02:00
Denis Rouzaud
ba6f736c02 remove comments from sipfiles (QgsVectorLayer and QgsFeature) 2017-03-30 15:13:01 +02:00
Matthias Kuhn
bd75aeef49 Put some sip code into qgsfeature.h
Just for reference
2017-03-30 15:13:01 +02: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
92249c1a33 [FEATURE][processing] Snap Geometries algorithm can now snap
within the same layer

Allows closure of gaps within a layer
2017-03-30 13:54:05 +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
Nyall Dawson
6ea616ef4b Fix compilation error on Travis 2017-03-30 11:38:16 +10:00
volaya
ca5f99de1c Merge pull request #4278 from sfkeller/patch-1
[processing] Updated ogr2ogr.py with GeoPackage in FORMATS and EXTS.
2017-03-29 14:43:21 +02:00
Nyall Dawson
99f186a7d2 Clean up progress handling in QgsProcessingFeedback 2017-03-29 09:02:30 +10:00
Nyall Dawson
5b9dc9dca5 Allow labels to be toggled in map views
Another step toward feature parity with overview panel
2017-03-28 13:18:24 +10:00
Alexander Bruy
b8cb196322 Merge pull request #4293 from alexbruy/processing-api
[processing][needs-docs] Processing API improvements
2017-03-27 10:25:43 +03: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