Opened 8 years ago

Closed 8 years ago

#1334 closed defect (fixed)

WCPS1.5_Range constructor error with unhandled domain intervals

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 9.3
Component: petascope Version: development
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Medium

Description

WCPS query

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")

return Rasql in WCPS 1.5

SELECT encode({ 
( c.5 ) [9223372036854775807], 
( c.3 ) [9223372036854775807], 
( c.2 ) [9223372036854775807]}, "png" ) 
FROM tyrol_6 AS c

and Rasql in WCPS 1.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

Change History (1)

comment:1 by Bang Pham Huu, 8 years ago

Resolution: fixed
Status: newclosed

in WCPS 1.5, it is fixed with set correct interval for each range field, close ticket.

for c in (irr_cube_2)
return encode(
{red:  (c.b1)[ansi("2008-01-01")];
 green: (c.b1)[ansi("2008-01-01")];
 blue: (c.b2) [ansi("2008-01-01")]},
 "png")
SELECT encode({ 
    ( c.0 ) [0:62,0:35,0],
    ( c.0 ) [0:62,0:35,0],
    ( c.1 ) [0:62,0:35,0]}, 
    "PNG", "xmin=75042.72735943;ymin=5094865.5579385;
     xmax=705042.72735943;ymax=5454865.5579385;crs=EPSG:32633") 
FROM irr_cube_2 AS c
Note: See TracTickets for help on using tickets.