Changes between Initial Version and Version 4 of Ticket #1230
- Timestamp:
- May 12, 2016, 2:30:22 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1230
- Property Status new → assigned
- Property Component undecided → rasql
- Property Summary WCPS1.5_Error when scale axis to a slicing point → Rasql_Error when scale axis to a slicing point
- Property Priority major → minor
- Property Owner set to
-
Ticket #1230 – Description
initial v4 1 WCPS query 1 scaling to an interval that contains any slices should throw an error in rasql. 2 2 3 4 {{{ 5 for c in (rgb) return encode(c[i(100:100), j(100:100) ], "csv") 6 }}} 7 8 9 WCPS1.5 returns Rasql query 10 3 Examples: 11 4 12 5 {{{ 13 6 SELECT encode(SCALE(c, [100,243]), "csv" ) FROM rgb AS c 14 7 }}} 15 16 then returns error 17 18 8 and 19 9 {{{ 20 <ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0.0" xsd:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd"> 21 <ows:Exception exceptionCode="SemanticError"> 22 <ows:ExceptionText>Operation request is semantically wrong.</ows:ExceptionText> 23 </ows:Exception> 24 <ows:Exception exceptionCode="RuntimeError"> 25 <ows:ExceptionText>java.lang.NullPointerException : null</ows:ExceptionText> 26 </ows:Exception> 27 </ows:ExceptionReport> 10 SELECT encode(SCALE(c, [100:102,243]), "csv" ) FROM rgb AS c 11 }}} 12 and 13 {{{ 14 SELECT encode(SCALE(c, [100,100:243]), "csv" ) FROM rgb AS c 28 15 }}} 29 16 17 In all of these cases rasql should throw an exception: "Invalid scaling minterval". 30 18 31 32 33 while Rasql from WCPS 1.0 returns 34 35 36 {{{ 37 select csv(scale( c, [100:100,243:243] )) from rgb AS c where oid(c)=45057 38 }}} 39 40 and values {"119 208 248"} 41 42 43 Then, '''scale in rasql needs trimming interval instead of a slicing point to work''' (?) 44 19 Scaling in rasdaman is handled in source:qlparser/qtbinaryfunc.cc (QtScale class).