Opened 10 months ago

Last modified 5 months ago

#1389 new defect

Rasql_Range constructor does not regard specific scalar values

Reported by: bphamhuu Owned by:
Priority: major Milestone: 9.4
Component: rasql Version: development
Keywords: Cc: dmisev, vmerticariu
Complexity: Medium


Use case: create a 2D coverage with 3 bands (when 2 bands are filled with trivial scalar value and 1 band is calculated scalar value).

rasql -q 'SELECT encode({
  MARRAY first in [51:150,0:99] 
  VALUES (first * (first > 50) + 250*(first > 150))
  , 250}, "png" , 
"nodata=250,0,0;xmin=51;ymin=0;xmax=150;ymax=99") FROM mean_summer_airtemp AS c' --out file

the output image has correct values for band 2 (calculated band) but values of band 1 and band 3 is '''0''', instead of 200 and 250 respectively.

Change History (1)

comment:1 Changed 5 months ago by bphamhuu

  • Milestone changed from 9.3 to 9.4
Note: See TracTickets for help on using tickets.