Denis Rouzaud
6e14854f90
[sipify] remove redundant private sections
2017-10-09 09:51:40 +02:00
Nyall Dawson
49b426d951
Make doxygen_space script convert multiline //! comments
...
Because:
- the /** format is much more prevalent throughout QGIS
- sipify works correctly with /**
2017-10-06 07:55:52 +10:00
Nyall Dawson
92af1dacaf
Replace default constructors/destructors with = default
2017-10-01 06:52:14 +10:00
Nyall Dawson
270f167829
Fix doctest
2017-09-25 17:12:04 +10:00
Nyall Dawson
01d34ede9d
Sip sync
2017-09-25 17:12:03 +10:00
Nyall Dawson
9b04589ce7
More missing docs
2017-09-11 21:55:20 +10:00
Nyall Dawson
6166d21289
Add missing docs
2017-09-11 21:43:15 +10:00
Denis Rouzaud
bc193c0034
fix QgsRasterHistogram::histogramVector for SIP <= 4.17
2017-08-19 09:11:40 +02:00
Alexander Bruy
0476d4e2da
[API] method to retrieve corresponding GDAL driver from a file
...
extension
2017-08-01 14:52:25 +03:00
Juergen E. Fischer
8d35a42b47
fix windows build
2017-06-13 15:03:33 +02:00
Denis Rouzaud
82cfc31870
avoid python signature overloads to handle NaN default values
2017-06-12 11:35:16 +02:00
Denis Rouzaud
176b7cafaf
sipify core raster part 3
2017-06-05 22:59:25 +02:00
Nyall Dawson
e5b8b32e04
Make paletted raster widget behave the same as categorized widget
...
when changing current band
Now the widget asks users if they want to delete existing categories
when they switch a band, just like how the categorized renderer
widget asks when the categorized field is changed.
2017-06-05 09:50:44 +10:00
Matthias Kuhn
a9d7630a69
Rename QgsPointV2 to QgsPoint and QgsPoint to QgsPointXY
...
Because 3D coordinates should be the default.
References https://github.com/qgis/qgis3.0_api/issues/36
2017-06-02 19:53:37 +02:00
Denis Rouzaud
2d78ef80a9
handle PyName for enums
2017-06-02 13:27:15 +02:00
Denis Rouzaud
98f653e6a5
sipify core raster part 2
2017-06-02 13:27:15 +02:00
Denis Rouzaud
07fa24781c
sipify core raster part 1
2017-06-01 13:33:16 +02:00
Alexander Bruy
fa6b5b0a16
rename new method to createMultiBandRaster to make it more obvious
...
reorganize arguments
2017-05-23 09:06:03 +03:00
Alexander Bruy
9272dc0f7c
[API] convenience API call to create empty raster file with given
...
number of bands. Will be useful for porting raster analysis code
to use QgsRasterBlock instead of GDAL calls.
Follow up ff8d91214748e0363010e263401212d0b4e0e491
2017-05-23 09:02:54 +03:00
Blottiere Paul
8a6137247a
Remove the deep copy functionality
2017-05-18 11:09:41 +02:00
Blottiere Paul
42a967904a
Update sip binding
2017-05-18 11:09:23 +02:00
Martin Dobias
23a7bd0fd9
Introduce QgsReadWriteContext that encapsulates QgsPathResolver
...
This should make the read/write methods more flexible if we need to give them extra context.
2017-05-13 18:09:26 +08:00
Martin Dobias
8ffd91ea90
Propagate path resolver through renderers, annotations, diagrams
...
This is necessary in order to be able to correctly translate between absolute and relative paths
deeper in the code - e.g. paths to SVG files used in marker or fill symbols.
Until now, relative paths were translated to absolute paths on the fly.
This is now changed - paths to files should be always absolute within QGIS objects - and paths
only get turned into relative when saving projects. When loading a project, relative paths
are translated to absolute paths immediately.
This should lower the overall confusion about relative/absolute paths within QGIS, and also
allow having different base directories for relative paths (e.g. QML or QPT files may use relative paths
to their directory - rather than to the project directory)
2017-05-13 18:02:19 +08:00
Nyall Dawson
64b612f2a8
[FEATURE] Import layers to data providers in background
...
Flips the drag and drop import of layers to browser data sources
to use task manager, allowing these slow imports to occur
in the background.
2017-05-12 08:03:23 +10:00
Denis Rouzaud
85f3b81b55
remove double spaces in sip files
...
fix indentation
2017-05-03 08:02:14 +02:00
Denis Rouzaud
7d459149c7
[sip] align missing bits and replace nullptr by 0
2017-05-02 08:09:53 +02:00
Denis Rouzaud
7b60d89d6c
align pointer and reference in sip files batch 2
2017-05-01 20:00:51 +02:00
Matthias Kuhn
28a21209b9
[sipify] seealso
2017-04-30 16:52:05 +02:00
Denis Rouzaud
1bfa539df1
[sipify] remove extra blank line
2017-04-24 07:39:30 +02:00
Denis Rouzaud
8f2a5c7c00
sipify all
2017-04-20 14:21:36 +02:00
Nyall Dawson
3535ee2d55
Allow QgsDataProvider access through QgsMapLayer
...
Avoids having to cast to QgsRasterLayer/QgsVectorLayer before
accessing the common QgsDataProvider members
2017-04-18 11:14:01 +10:00
Nyall Dawson
eff5a823c9
[sipify] Convert "\a arg" to "`arg
`" when processing Docstrings
...
Allows argument names to be highlighted in Python docs
2017-04-17 13:49:59 +10:00
Nyall Dawson
6a72c945af
[sipify] Don't autocreate Docstrings for overridden members
...
Skip the autocreated Docstrings with rtype annotations if the
member is overridden - better to use the base class
Docstring in this case.
2017-04-17 11:03:02 +10:00
Nyall Dawson
f2a7dcbdd7
Rename QgsMapLayer::metadata -> htmlMetadata()
...
Frees up metadata() for use as a structured metadata getter
2017-04-10 18:45:00 +10:00
Nyall Dawson
8cf5860d72
Fix missing sip cast for QgsHillshadeRenderer
2017-04-10 08:52:32 +10:00
Nyall Dawson
bfd37e1122
[sipify] Add return types for functions in docstrings
...
and change \return -> :return: in docystrings
2017-04-08 09:48:48 +10:00
Matthias Kuhn
58d2d6d7f9
sipify_all
2017-04-07 12:26:30 +02:00
Nyall Dawson
ca8e1d343d
[sipify] Replace nullptr with None in docstrings
...
Since nullptr has no meaning to Python devs
2017-04-07 09:21:26 +10:00
Nyall Dawson
5ccc6cccef
Update api break docs, sipify QgsRasterFileWriter
2017-04-07 09:21:26 +10:00
Nyall Dawson
110828feab
[FEATURE] Background saving of raster layers
...
Use the task manager framework to handle saving of raster layers
in the background
2017-04-07 08:18:57 +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