Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Processing: Log tab in processing dialog misses text in between angled brackets (<>) #23670

Closed
qgib opened this issue Oct 24, 2016 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Oct 24, 2016

Author Name: Martijn Verkleij (Martijn Verkleij)
Original Redmine Issue: 15748
Affected QGIS version: 2.18.0
Redmine category:processing/gui
Assignee: Victor Olaya


For some reason, text in between angled brackets disappears completely from log output found in the processing execution dialog.

This behavior was observed on QGIS 2.18, on both Windows and Ubuntu.

A model file is supplied to demonstrate the problem. The steps found below have been executed with this model.

STEPS TO REPRODUCE:

  1. Create a model, include a raster calculator and build a conditional query with angle brackets: (A<50)A2+A2(A>=50)+(A<-9999)*0
  2. Execute the algorithm. The output of a run I did is included hereafter: (see also the included picture for a marked one)
Algorithm demonstration_angle_brackets starting...
Prepare algorithm: GDALOGRRASTERCALCULATOR_1
Running Raster calculator [1/1]
Parameters: INPUT_A =||REDACTED||, BAND_A =1, INPUT_B =None, BAND_B =1, INPUT_C =None, BAND_C =1, INPUT_D =None, BAND_D =1, INPUT_E =None, BAND_E =1, INPUT_F =None, BAND_F =1, FORMULA =(A=50)+(A=, RTYPE =1, EXTRA =
GDAL command:
gdal_calc.py --calc "(A=50)+(A
GDAL command output:
0 .. 10 .. 20 .. 30 .. 40 .. 50 .. 60 .. 70 .. 80 .. 90 .. 100 - Done 
Converting outputs
OK. Execution took 0.250 ms (1 outputs).
Model processed ok. Executed 1 algorithms total
Converting outputs
Loading resulting layers
Algorithm demonstration_angle_brackets finished

  1. Observe that in log output, the calculation reportedly executed is "(A=50)+(A", which is different from what was entered in the model before. Furthermore, the reported gdal_translate command is truncated altogether, which suggests that text sent to output is simply truncated from an open angle backet (<) onward.

  2. Observe that the resulting raster map was calculated correctly.


@qgib
Copy link
Contributor Author

qgib commented Oct 28, 2016

Author Name: Victor Olaya (@volaya)


Fixed in changeset "3c8c509c8188e9db302278ac743f1b2c7a740a38".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
@qgib qgib added this to the Version 2.18 milestone May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant