15 Commits

Author SHA1 Message Date
Martin Dobias
11d1ac9540 Try to do automatic choice of the reference layer in GUI (using smallest cell area) 2015-06-29 10:25:47 +08:00
Martin Dobias
fcc0160755 Fix type of CRS WKT (use just QString instead of both QString and QByteArray) 2015-06-29 10:25:47 +08:00
Martin Dobias
06b4ad8512 Allow for custom setting of cell size / grid offset in GUI 2015-06-29 10:25:47 +08:00
Martin Dobias
3d290ef21a Align rasters: configuration of clip extent, reporting of output size 2015-06-29 10:25:47 +08:00
Martin Dobias
b452bc0245 Support reprojection in GUI, added unit tests for reprojection 2015-06-29 10:25:47 +08:00
Martin Dobias
d7a9493445 Add error messages, fix reporting of grid offset 2015-06-29 10:25:46 +08:00
Martin Dobias
515de2879b Added progress reporting 2015-06-29 10:25:46 +08:00
Martin Dobias
d6d2f1a374 Add python bindings for QgsAlignRaster 2015-06-29 10:25:46 +08: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
e1f7d330c2 [rastercalc] More robust handling of nodata in calculations
Also allow creation of QgsRasterCalcNodes which directly reference
a QgsRasterMatrix for testing.
2015-06-10 21:45:37 +10:00
Nyall Dawson
f42f640d30 [rastercalc] Switch all internal calculations to doubles
...for more accurate calculations (fix #9081)

Also:
- Add test suite for raster calculator
- Fix errors with log/log10 calculation and inputs <= 0
- Fix loss of nodata values in certain circumstances
2015-06-10 21:45:37 +10:00
Juergen E. Fischer
0ccc07af0e raster calculator fixes (fixes #12238)
* GDALGetGeoTransform failures can be ignored (partly reverts 0080f9e)
* handle quoted raster references
* don't complain if the output file is not yet set
2015-02-23 21:48:04 +01:00
Juergen E. Fischer
45c0be1059 sip: remove enum constants 2014-06-02 21:52:02 +02:00
Juergen E. Fischer
74e7314c36 update sip bindings II 2014-01-27 09:22:53 +01:00
Juergen E. Fischer
f3cb57b1eb SIP bindings update:
- update methods of existing classes
- add comment to methods missing in the sip bindings
- split up collective sip files into single files and use
  same directory structure in python/ as in src/
- add a lot of missing classes (some might not make sense because of
  missing python methods in those classes)
- remove some non-existing methods from the header files
- add scripts/sipdiff
- replace some usages of std::vector and std::set with QVector/QSet
2012-09-24 02:42:57 +02:00