55 Commits

Author SHA1 Message Date
Nyall Dawson
715395aa47 Fix incorrect 'not available in Python' dox 2019-02-05 13:46:34 +11:00
Nyall Dawson
384d310233 Minor improvements to PyQGIS returns for SIP_OUT params 2019-02-05 04:55:34 +11:00
Nyall Dawson
ddd357c2ea Add API to QgsRasterBlock to obtain both pixel value AND no data
flag in a single call

This is much more efficient then making two calls, since the
QgsRasterBlock::isNoData() check internally calls QgsRasterBlock::value().
So by requiring API users to make the two separate calls individually,
we double the time this process takes...
2019-01-22 12:13:39 +11:00
Nyall Dawson
d57c182d8b Allow QgsRasterIterator to iterate over a raster layer, WITHOUT
actually fetching the raster block data

This allows for efficient iteration over a "reference" layer, where
you require the block extent/origin/pixel size/etc (but not the
reference layer block data itself!), in order to fetch a block from
a DIFFERENT set of rasters (but keeping these pixel-aligned to the
reference raster).
2019-01-22 07:52:45 +11:00
Juergen E. Fischer
196024ccba typo fixes 2019-01-01 21:53:37 +01:00
Denis Rouzaud
166e952c33 run sipify 2018-12-19 08:04:27 -04:00
Denis Rouzaud
edfb7e1465 run sipify 2018-12-18 17:17:25 -04:00
Alessandro Pasotti
326640d881 Implement setDataSource for rasters 2018-11-05 10:24:35 +01:00
Denis Rouzaud
cb9774022f create dialog for saving different styles 2018-09-14 16:35:30 +10:00
Denis Rouzaud
15e0d873d9 select categories in copy style in legend menu entry
not working yet, just set the menu entries
QgsMapLayerStyle::StyleCategory has moved to QgsMapLayer to avoid making QgsMapLayerStyle a QObject and they are mostly used in QgsMapLayer
2018-09-14 16:35:30 +10:00
Denis Rouzaud
51e9be0575 add API to select section of layer style when reading/writing 2018-09-14 16:35:30 +10:00
Denis Rouzaud
4b7da692d6 run sipify all 2018-09-10 11:41:57 -04:00
Juergen E. Fischer
a823046b5f followup spelling fixes 2018-09-07 00:33:13 +02:00
Peter Petrik
d7afb710d7 [mesh] [feature] add opacity slider to mesh contours settings 2018-08-28 09:17:31 +02:00
Chris Mayo
2a72eda514 Improve documentation of QgsRasterLayer constructor
- baseName is just passed on to the parent constructor to be the display
   name, use a literal string in the example to avoid misunderstanding.

 - Remove stray bullet.
2018-08-24 06:16:57 +10:00
Martin Dobias
358d12946b Read/write mesh styling from/to project files 2018-08-14 16:42:13 +02:00
Alessandro Pasotti
82fdb56c6a Const correctness for rasterblock 2018-08-08 09:39:57 +02:00
Alessandro Pasotti
6b10ffefb0 Add overload that accepts qgissize instead of int
to avoid a lot of annoying warnings and spare
some casts
2018-08-08 09:23:39 +02:00
Nyall Dawson
74c2ed12a5 Nicer API for raster sampling 2018-07-20 07:24:35 +10:00
Nyall Dawson
54e511960c More heavily optimised sample method for gdal provider 2018-07-20 07:24:35 +10:00
Nyall Dawson
b747ff6301 Dox++ 2018-07-20 07:24:35 +10:00
Nyall Dawson
ba10d1b5e7 [FEATURE] Add QgsRasterDataProvider::sample method for efficient
sampling of rasters at a given point

This is an alternative to the ::identify method, which is less
efficient but more powerful
2018-07-20 07:24:35 +10:00
Martin Dobias
48195e0158 Make shade() const 2018-07-12 15:10:12 +02:00
Martin Dobias
0a35d43552 Speed up rendering of RGB images
In my simple test case this made map rendering of RGB satellite image tiles
go down by ~50% from ~40ms per tile to ~20ms per tile (in debug version, ahem)
2018-07-09 22:01:11 +02:00
Peter Petrik
aeea184890 [mesh] [feature] App widgets for styling mesh layers
- Adding datasets to mesh layer from properties panel
- Information and source panel in properties panel
- Selection of active dataset (properties or styling panel)
- Styling of contours/scalars (properties or styling panel)
- Styling of mesh frame (properties or styling panel)
- Styling of vector arrows (properties or styling panel)
2018-06-26 08:50:19 +02:00
Martin Dobias
4c84cfa29a Fix a memory leak in classify() + add missing annotations/docstrings
A pseudo color renderer was getting created in classify() but never deleted.

Spotted by @PeterPetrik

As a bonus switched a for loop from mixed constBegin()/end() usage to range for.
2018-06-22 05:48:46 +10:00
Nyall Dawson
f99d51175f Fix seealso links 2018-06-15 06:39:48 +10:00
Nyall Dawson
76eb29daf3 Unit tests and dox for QgsRasterIterator 2018-06-15 06:39:48 +10:00
Nyall Dawson
0f0a7dc64a Add QgsRasterRange::asText for a text representation of a range 2018-06-13 14:54:40 +10:00
Nyall Dawson
f934c5c09a Add overlaps test to QgsRasterRange 2018-06-13 14:54:40 +10:00
Nyall Dawson
9be729321a Minor fixes 2018-06-13 14:54:40 +10:00
Nyall Dawson
79c907bf3e Add unique_ptr variant to QgsRasterIterator::readNextRasterPart 2018-06-13 14:54:40 +10:00
Nyall Dawson
a534286c89 Since 3.4->3.2 2018-06-13 14:54:40 +10:00
Nyall Dawson
a69274ac6d Add contains check to QgsRasterRange 2018-06-13 14:54:40 +10:00
Nyall Dawson
d435a7a0fb Add bounds type handling to QgsRasterRange 2018-06-13 14:54:40 +10:00
Nyall Dawson
a2042a4ace Expose a method to Python 2018-06-13 14:54:40 +10:00
Nyall Dawson
0ab63274f6 Documentation for QgsRasterRange 2018-06-13 14:54:40 +10:00
Nyall Dawson
2ed144ac59 Apply clang-tidy readability-avoid-const-params-in-decls fixit
Checks whether a function declaration has parameters that are
top level const.

const values in declarations do not affect the signature of a
function, so they should not be put there.
2018-06-05 10:19:13 +10:00
Denis Rouzaud
65bb60e96c run sipify 2018-05-28 10:39:34 -08:00
Nyall Dawson
f8bc97030b Remove extra space added before first line of docstring 2018-05-28 08:22:11 +10:00
Nyall Dawson
9f650fead9 Fix incorrect param docstring when doxygen \param has extra
trailing spaces or uses tabs
2018-05-27 18:54:09 +10:00
Nyall Dawson
4b1b752633 Fix bad regex 2018-05-27 18:54:09 +10:00
Nyall Dawson
3d6ea5972b Remove some junk lines from docstrings 2018-05-27 18:54:09 +10:00
Nyall Dawson
38850bdb94 [pyqgis] Ensure that multiline param tags are indented for additional lines 2018-05-27 18:54:09 +10:00
Nyall Dawson
c864d22d1f Add "get ..." to doxygen compliance blacklist
Should be "gets ..." for consistent tense, or better yet
"returns ..." for consistency.
2018-05-27 14:05:06 +10:00
Nyall Dawson
b6b08e96a0 Add 'accessor for' to doxygen compliance blacklist
Use "Returns the..." instead
2018-05-27 14:05:06 +10:00
Nyall Dawson
fa5a7d2ae2 Typo 2018-05-26 15:44:04 +10:00
Nyall Dawson
ff55cfc99d Add missing getters to QgsContrastEnhancementFunction 2018-05-26 15:44:04 +10:00
Nyall Dawson
8f770c3f60 Add 'mutator for ' to doxygen compliance blacklist 2018-05-26 15:44:04 +10:00
Nyall Dawson
1c615c15cc More documentation compliance
Use Qt style "returns .." tense instead of "return ..", and lock
this in with a documentation compliance unit test
2018-05-25 15:09:00 +10:00