Statistics
| Branch: | Tag: | Revision:

qgis / src / analysis / raster / qgsrastercalculator.cpp @ master

History | View | Annotate | Download (27.4 KB)

# Date Author Comment
8a2c0e35 2023-05-20 08:19 AM Nyall Dawson

Replace QgsDebugMsg(...) with QgsDebugError(...) and ensure it
is ONLY used for error message reporting

Everything else gets bumped to QgsDebugMsg(..., >= 2)

47182b5c 2023-01-27 01:09 PM Even Rouault

[Raster] Add a Qgis::DataType::Int8 signed data type

00a0dfb1 2022-03-18 08:52 PM Loïc Bartoletti

Pass some values to initialization list

c1fa7c98 2021-06-02 03:11 PM Alessandro Pasotti

Fix missing stats after raster calc output

Fixes #42835

Also on raster calc:

- fix unreported issue with nodata float opencl
- papercut: set progress dialog window title

bbb74b8f 2021-05-30 01:40 PM Jorge Gustavo Rocha

Add support for postgresraster based rasters in Raster Calculator (#43440)

876ee57f 2021-03-20 04:58 AM Nyall Dawson

Remove redundant qgis::as_const implementation, move to c++17 std::as_const

bd82925d 2021-02-25 02:08 AM Nyall Dawson

Replace qgis::make_unique with std::make_unique

Now that we require c++14 features, we don't need to use the custom
backported version anymore...

499a37c2 2021-01-12 03:48 AM Nyall Dawson

Run qstring fixup

9a5df0d7 2020-11-10 06:15 PM Alessandro Pasotti

Raster calc nodata value

Fixes #39926

a76670e5 2020-10-11 04:30 AM Even Rouault

QStringLiteral -> QLatin1String changes generated by scripts/qstringfixup.sh --all

5b6589f6 2020-04-23 07:59 PM Nyall Dawson

Cleanup QgsCoordinateReferenceSystem WKT enum

- alias WKT_2018* to new WKT_2019* values, since the spec is actually
2019, not 2018
- add WKT_PREFERRED value which currently aliases to WKT2_2019, but
can be changed if/when future bumps to the WKT spec happen...

aa47fe35 2020-02-14 09:15 AM Alessandro Pasotti

Small optimization, and nodata fill in GPU path

to be consistent to what happens in the CPU path

f77af382 2019-12-20 03:13 AM Nyall Dawson

Prefer WKT2 when exporting CRS for use by GDAL

ab6239b7 2019-11-26 09:25 AM Nyall Dawson

Don't report success when a calculation error occurred

f086d4e6 2019-11-26 09:25 AM Nyall Dawson

Avoid qt containing detachment, remove some auto use

bc6c3e57 2019-11-26 09:25 AM Nyall Dawson

Avoid altering std::map while iterating over it (potentially unsafe)

And avoid some double-lookups

4263637b 2019-10-30 02:19 AM Alessandro Pasotti

Fix raster calc OpenCL < operator

Fixes #32477

also:
- catch build exceptions
- remove parenthesis after casting numbers
- add cast to raster ref (for fabs overload)

with tests

b81d3060 2019-10-26 02:50 AM Jürgen Fischer

spelling fixes (closes #32408)

d730c97f 2019-09-26 06:26 PM Alessandro Pasotti

Fix multiple raster calc issues

Fixes #32023 Raster calculator change sign does not work when OpenCL is on
Fixes #32025 QGIS Raster Calculator outputs nodata only rasters

Bonus: three new operators with full test coverage
- ABS
- MIN
- MAX

13be186b 2019-07-10 12:10 AM Nyall Dawson

Use QgsMapLayer::providerType() instead of dataProvider()->name(),
as it's more robust in handling invalid layers

6b539379 2019-06-20 09:34 AM Matthias Kuhn

Improved fix

e8d28826 2019-06-19 05:08 PM Matthias Kuhn

Do not assume we can randomly access std::vector elements without pushing them

Fix #30232

861c5115 2019-06-07 08:40 AM Nyall Dawson

Fix various clazy warnings

e5491ee6 2019-04-17 02:06 AM Alessandro Pasotti

Get transformContext from layer instead of provider

ac043394 2019-04-17 02:06 AM Alessandro Pasotti

Pass transform context to raster calculator

654a78d6 2019-04-17 02:06 AM Alessandro Pasotti

Raster transform context

c5ef988d 2019-03-07 07:34 PM Alessandro Pasotti

Fix raster calculator with multiband rasters

Fixes #21151

ecb6cde3 2019-01-02 04:59 PM Alessandro Pasotti

Pick up all layer entries references from the project context

This is the processing side of the duplicate layer
names bug, while the core part was already fixed,
the processing logic was extended to handle inputs
from models and full-path references.

Fixes #20601

b71a668a 2018-12-13 06:36 PM Alessandro Pasotti

opencl rastercalc fix int input rasters and cast to float

Cast to float all math operations because when the
input is not a float or a double opencl raises
an error regarding which override should pick.

By casting to float we are sure that the right
function will be called....

61dd7295 2018-12-03 10:05 AM Alessandro Pasotti

Move nodeCalc unique ptr to the GPU function

... and spare some CPU cycles

5ef87371 2018-12-01 05:31 PM Alessandro Pasotti

Remove duplicated code

The input check was already done before entering
in the GPU branch

e01c162f 2018-12-01 11:02 AM Alessandro Pasotti

Fix build warnings

6a1a581e 2018-12-01 10:42 AM Alessandro Pasotti

[opencl] Raster calculator goes opencl

50e54142 2018-11-30 09:03 AM Alessandro Pasotti

Coding style and SIP_DEPRECATED

49da1c3b 2018-11-29 12:46 PM Alessandro Pasotti

Return a vector instead of a list and deprecate rasterEntries

18854dc7 2018-11-29 12:26 PM Alessandro Pasotti

Do not add duplicates in raster calc layers list

Related to #20601

41409602 2018-11-28 10:57 AM Alessandro Pasotti

Fix build warning

9c55e451 2018-11-28 10:33 AM Alessandro Pasotti

Remove debug code and improve comments

e329fb5b 2018-11-28 10:11 AM Alessandro Pasotti

Scanline implementation

51f6fb06 2018-10-16 05:32 AM Nyall Dawson

QStringLiteral

fd1d6c10 2018-09-25 08:27 PM Nyall Dawson

Add more descriptive error messages for raster calculation failure

With unit tests

d2a7668c 2018-09-22 04:47 PM Even Rouault

Raster: do not list RasterLite2 as a supported output format, and use a helper for every call site (fixes #19483)

d79dd73b 2018-07-20 07:10 AM Nyall Dawson

Modernize code

5fa5b868 2018-02-09 08:05 AM Mathieu Pellerin - nIRV

[raster calculator] use feedback when reprojecting raster block

f2273c6a 2018-01-23 09:55 AM Alexander Bruy

[raster calculator] don't crash if output file has illegal size, e.g. 0x0

332215c8 2017-10-26 12:37 AM Nyall Dawson

Safer GDAL delete and close of datasets, which doesn't leak
and works on Windows

See
https://github.com/qgis/QGIS/commit/d024910490a39e65e671f2055c5b6543e06c7042#commitcomment-25194282

7455c2f9 2017-10-26 12:12 AM Nyall Dawson

More gdal scoped pointer types

92af1dac 2017-09-30 10:52 PM Nyall Dawson

Replace default constructors/destructors with = default

a87d352b 2017-09-26 09:02 PM Nyall Dawson

Run clang-tidy modernize-use-default-member-init to move member
initialization to headers (c++11 style)

eb7ad7ae 2017-08-29 01:46 PM Nyall Dawson

Swap final uses of QProgressDialog in analysis lib to QgsFeedback

2e7de50b 2017-03-03 09:09 AM Denis Rouzaud

run astyle on src/*

d19e7070 2017-02-18 11:23 AM Nyall Dawson

Ensure all pointer variables are initialized to nullptr

b1197447 2017-01-16 10:27 PM Denis Rouzaud

replace cancelling, cancelled and cancellation by canceling, canceled and cancelation, respectively (#4000)

  • replace cancelling and cancelled by canceling and canceled, respectively

see https://github.com/qgis/qgis3_UIX_discussion/issues/19

  • replace cancellation by cancelation
4b8c5bea 2017-01-09 10:39 AM Nyall Dawson

Remove some more macros not needed with GDAL>=2 requirement

b0bc7634 2017-01-03 06:10 AM Nyall Dawson

Bump minimum GDAL version to 2.0, remove old version #ifdefs

4cfacf14 2016-07-21 12:40 AM Nyall Dawson

Make API more consistent

- rename methods with XML to Xml, CRS to Crs, WMS to Wms, ID to Id
- rename methods with SRS to Crs
- rename methods with abbreviations like "dest" to "destination"
- rename methods with abbreviations like "src" to "source"

c628c0f4 2016-07-18 11:10 AM Nyall Dawson

Rework includes to forward declare as much as possible

Should speed up recompilation when headers change

4cc5c2cb 2016-03-10 07:52 PM Matthias Kuhn

Add some debug output when GDALRasterIO operations fail

Or the compiler will complain about unhandled returns

639d1b39 2016-02-01 12:31 PM Nyall Dawson

Fix memory leak

a665b7d7 2016-01-27 12:48 AM Nyall Dawson

Don't crash when using raster calculator with huge raster (refs #13336)

Now we abort and advise the user if insufficient memory is available
to perform the calculation.

At some future stage it would be nice to perform the calculations
in blocks to allow this scenario, but for now it's better not to...

24d9c654 2016-01-26 04:24 AM Nyall Dawson

Fix more classes which violate the rule-of-three

Also remove some empty destructors

82146081 2015-12-16 04:29 PM Jürgen Fischer

more nullptr updates (folloup 320c696)

576875e9 2015-12-15 01:24 AM Nyall Dawson

Followup 320c696 use clang-modernize to replace 0/NULL use with nullptr

a417dcf7 2015-08-26 02:53 PM Nyall Dawson

Fix leaks in raster calculator

00e04739 2015-06-15 11:27 PM Nyall Dawson

[rastercalc] Fix use of uninitialized variable

9e3183c6 2015-06-10 02:54 PM Denis Rouzaud

Revert "sort includes"

This reverts commit 2b7d3d3c73b50ba6dc74abec6dd652ff1b87c0ec.

2b7d3d3c 2015-06-10 01:59 PM Denis Rouzaud

sort includes

efde7ad4 2015-06-10 01:45 PM Nyall Dawson

[rastercalc] Remove some redundant private methods

559d7bb9 2015-06-10 01:45 PM Nyall Dawson

[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...

f42f640d 2015-06-10 01:45 PM Nyall Dawson

[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

0ccc07af 2015-02-23 09:48 PM Jürgen Fischer 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
0080f9ef 2015-02-14 11:35 AM Nyall Dawson

Coverity fixes - unchecked return value

b35a596a 2015-02-10 12:38 AM Jürgen Fischer

raster calculator: allow unquoted raster references (fixes #11682)

e4253721 2015-02-09 06:05 AM Nyall Dawson

Coverity fixes

Including a notable bug causing "mean" to be missing from merge
attributes dialog options.

98401dc0 2014-02-21 03:22 PM Jürgen Fischer

raster calculator: exit on error (fix #5075)

eea246a0 2013-07-16 03:43 AM Minoru Akagi

fix build (follows 0e7b60e)

618ffa0e 2013-07-14 09:21 AM Minoru Akagi

make filename encoding consistent (gdal/ogr)

f40e3a6f 2013-04-12 07:20 PM Radim Blazek

renamed doubleNear to qgsDoubleNear, QgsMalloc to qgsMalloc, QgsCalloc to qgsCalloc, QgsFree to qgsFree

d1cb3f3f 2012-05-09 08:43 AM Marco Hugentobler

Rastercalculator: fix for reading out of source raster bounds

64556282 2011-04-30 02:09 PM Jürgen Fischer

fix gcc 4.6 warnings

git-svn-id: http://svn.osgeo.org/qgis/trunk@15857 c8812cc2-4d05-0410-92ff-de0c093fc19c

ba0e5ad3 2011-04-23 09:55 PM Marco Hugentobler

Use epsg number for output crs in rastercalculator if possible (ticket #3649)

git-svn-id: http://svn.osgeo.org/qgis/trunk@15815 c8812cc2-4d05-0410-92ff-de0c093fc19c

f1527c7f 2011-03-23 05:08 PM Marco Hugentobler

Write projection info to raster calculator output

git-svn-id: http://svn.osgeo.org/qgis/trunk@15581 c8812cc2-4d05-0410-92ff-de0c093fc19c

a9a50ed1 2011-02-09 05:27 PM Jürgen Fischer

add support for UTF8 in GDAL/OGR 1.8 (fixes #2551)

git-svn-id: http://svn.osgeo.org/qgis/trunk@15148 c8812cc2-4d05-0410-92ff-de0c093fc19c

202ec2bc 2010-12-05 08:22 PM Marco Hugentobler

Use GDALAutoCreateWarpedVRT to handle south-up (or rotated) rasters also for calculator. Fixes bug #3281

git-svn-id: http://svn.osgeo.org/qgis/trunk@14842 c8812cc2-4d05-0410-92ff-de0c093fc19c

f25d868a 2010-11-05 12:16 AM Jürgen Fischer

fix vc warnings

git-svn-id: http://svn.osgeo.org/qgis/trunk@14508 c8812cc2-4d05-0410-92ff-de0c093fc19c

d2097c26 2010-11-04 12:11 PM Marco Hugentobler

Fix consideration of nodata values in raster calculator, code cleanups

git-svn-id: http://svn.osgeo.org/qgis/trunk@14503 c8812cc2-4d05-0410-92ff-de0c093fc19c

d1fe1448 2010-10-29 07:24 AM Jürgen Fischer

fix nightly build

git-svn-id: http://svn.osgeo.org/qgis/trunk@14445 c8812cc2-4d05-0410-92ff-de0c093fc19c

9e628254 2010-10-28 08:43 AM Marco Hugentobler

[FEATURE]: Add rastercalculator

git-svn-id: http://svn.osgeo.org/qgis/trunk@14442 c8812cc2-4d05-0410-92ff-de0c093fc19c