#2736 closed defect (invalid)

rasql - FIX - error with Value expression must be either of type atomic or complex

Reported by: Bang Pham Huu Owned by: Dimitar Misev
Priority: major Milestone: 10.2
Component: rasserver Version: 10.2
Keywords: Cc:
Complexity: Medium

Description (last modified by Dimitar Misev)

SELECT encode( (  add_cells( add_cells( (  (  (  (  ( c[16:35,42:60] )  -  ( project( d[16:35,42:60], "119.975,-39.474999999999987,129.975,-29.974999999999987", "EPSG:4326", "EPSG:4326", cubicspline ) )  )  *  (  (  ( c[16:35,42:60] )  -  ( project( d[16:35,42:60], "119.975,-39.474999999999987,129.975,-29.974999999999987", "EPSG:4326", "EPSG:4326", cubicspline ) )  )  > 0 )  )  * 5 )  ) )  *  ( MARRAY i in [16:35] VALUES  ( <[0:1] 4.5846843086,4.5846848184> )  ) )  )  /  (  ( 60 - 42 + 1 )  *  ( 35 - 16 + 1 )  ) , "json" , "{\"nodata\":[]}")   FROM test_mean_summer_airtemp AS c, test_mean_summer_airtemp AS d

error

Execution error 412 in line 0, column 0, near token : Value expression must be either of type atomic or complex.

Change History (1)

comment:1 by Dimitar Misev, 10 months ago

Description: modified (diff)
Resolution: invalid
Status: assignedclosed

Yes in this MARRAY the VALUES isn't an expression producing a scalar value but an array value:

MARRAY i in [16:35] VALUES  ( <[0:1] 4.5846843086,4.5846848184> )

Only scalar expressions are allowed.

Note: See TracTickets for help on using tickets.