Opened 16 months ago

Closed 3 months ago

#1335 closed defect (fixed)

Rasql_Range constructor error in 3D coverages and binary expression of ranges

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

Description (last modified by bphamhuu)

tyrol_6 is a 3D coverage with time axis and multi bands.

with Rasql from WCPS 1.0 like

for c in (tyrol_6) return encode({
red:  (c.swir2)[ansi("2015-06-01")];
green: (c.nir)[ansi("2015-06-17")];
blue: (c.red) [ansi("2015-06-01")]}, "png")
&wcpsVersion=2.0
select encode(((((c).5) [*:*,*:*,0]) * {1c,0c,0c} 
+ (((c).3) [*:*,*:*,1]) * {0c,1c,0c}
+ (((c).2) [*:*,*:*,0]) * {0c,0c,1c}), 
"PNG") from tyrol_6 AS c where oid(c)=113153

but with the new Range constructor syntax, it cannot run

select encode({ 
(c.5) [*:*, *:*, 0], 
(c.3) [*:*, *:*, 1], 
(c.4) [*:*, *:*, 0] },
 "png") from tyrol_6 as c

with error

Executing retrieval query...rasdaman error 0: Internal server error.
aborting transaction...E0530 09:37:23.696225185    9757 
cp_client_posix.c:171]     failed to connect to 'ipv4:10.70.11.237:7002': socket error: connection refused

Another example is when use binary expression of a range constructor with a sacalar value

SELECT encode( {c.0,c.1} * 5  , "csv" ) FROM irr_cube_2 AS c

which returns error

opening database RASBASE at localhost:7001...ok
Executing retrieval query...rasdaman error 0: Internal server error.
aborting transaction...E0531 08:05:26.991749410   22900 tcp_client_posix.c:171]     failed to connect to 'ipv4:10.70.11.237:7002': socket error: connection refused

Change History (4)

comment:1 Changed 16 months ago by bphamhuu

  • Description modified (diff)
  • Summary changed from Rasql_Range constructor error in 3D coverages to Rasql_Range constructor error in 3D coverages and binary expression of ranges

comment:2 Changed 8 months ago by bphamhuu

  • Milestone changed from 9.3 to 9.4

comment:3 Changed 5 months ago by dmisev

  • Owner changed from dmisev to bbell
  • Status changed from new to assigned

comment:4 Changed 3 months ago by bbell

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.