18 Commits

Author SHA1 Message Date
Juergen E. Fischer
a90be95f7b sip sync 2016-02-14 03:50:49 +01:00
Nyall Dawson
c3a57434d9 Fix clazy 'pass small and trivially-copyable type by value' warnings 2016-02-02 19:47:21 +11:00
Nyall Dawson
881074b194 Boost coverage of SIP bindings
Now all classes and members are either exposed to bindings or marked
as "not available in Python bindings" in the docs.

Drop test thresholds to 0. Now it should be much easier to determine
what missing members have been added which are causing test
failures.
2016-01-05 11:16:15 +11:00
Juergen E. Fischer
9752c468c1 indentation update 2015-07-29 11:52:14 +02:00
Nyall Dawson
559d7bb943 [rastercalc] Rework raster calculator to use QGIS raster classes
...rather than reading input layers directly through GDAL.
Benefits include more robust handling of nodata/data type conversions,
less code duplication, also being able to take advantage of features
in QGIS raster code like handling gain/offset in rasters. (fix #12450)

Also, add a choice of output projection to the raster calculator.
Previously the output CRS would be taken from the first raster, with
no guarantees that the output extent matched the output CRS. This
resulted in empty/misplaced rasters. (fix #3649)
2015-06-10 21:45:37 +10:00
Nyall Dawson
920f2ebe56 Fix bug causing raster blocks to be cleared when reprojecting
If a QgsRasterBlock had no nodata value set, then reprojecting
the raster using QgsRasterProjector would result in the entire
block being set to nodata.
2015-06-09 21:57:08 +10:00
D'Hont René-Luc
07c57585c1 [RASTER][Feature] Applying scale and offset to raster data - funded
Ifremer

An issue has been opened 5 mounth ago
[BUG] #8417 incorrect value loaded from netcdf file
The data has not be loaded incorrectly, but QGIS doesn't apply scale
and offset defined for each band.

This commit will apply scale and offset to GDAL Provider BandStatistics
and to RASTER block of data.

It also adds bandScale and bandOffset method to QgsRasterDataProvider Python API.
2014-05-15 16:55:30 +02:00
Juergen E. Fischer
74e7314c36 update sip bindings II 2014-01-27 09:22:53 +01:00
Juergen E. Fischer
d4e369414b update sip bindings 2014-01-26 18:36:29 +01:00
Radim Blazek
47b055f5a6 introduced qgssize in rasters instead of size_t to typedef it easily in SIP 2013-11-02 13:52:45 +01:00
Juergen E. Fischer
5d3223127d sync qgsrasterblock sip (followup eaa27aa4f) 2013-07-22 17:20:56 +02:00
Denis Rouzaud
335d7f02b4 raster block: add missing hasNoData method in sip 2013-07-22 15:56:51 +02:00
Radim Blazek
1f65f71833 raster cleanup 2013-04-15 15:52:15 +02:00
Radim Blazek
19377fbb8d raster no data value made optional 2013-04-12 18:56:36 +02:00
Radim Blazek
094a5d8275 QgsRasterBlock::Range to QgsRasterRange 2013-04-10 18:58:19 +02:00
Juergen E. Fischer
ac29c5b11f prepare-commit.sh: remove trailing blanks from python files 2013-01-12 23:48:58 +01:00
Radim Blazek
d435bfc876 QgsRasterBlock::DataType moved to QGis::DataType 2012-12-17 14:04:10 +01:00
Radim Blazek
7cb523a26f + QgsRasterBlock 2012-10-11 16:12:09 +02:00