Changes between Initial Version and Version 4 of Ticket #1230


Ignore:
Timestamp:
May 12, 2016, 2:30:22 PM (9 years ago)
Author:
Dimitar Misev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1230

    • Property Status newassigned
    • Property Component undecidedrasql
    • Property Summary WCPS1.5_Error when scale axis to a slicing pointRasql_Error when scale axis to a slicing point
    • Property Priority majorminor
    • Property Owner set to Dimitar Misev
  • Ticket #1230 – Description

    initial v4  
    1 WCPS query
     1scaling to an interval that contains any slices should throw an error in rasql.
    22
    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 
     3Examples:
    114
    125{{{
    136SELECT encode(SCALE(c, [100,243]), "csv" ) FROM rgb AS c
    147}}}
    15 
    16 then returns error
    17 
    18 
     8and
    199{{{
    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>
     10SELECT encode(SCALE(c, [100:102,243]), "csv" ) FROM rgb AS c
     11}}}
     12and
     13{{{
     14SELECT encode(SCALE(c, [100,100:243]), "csv" ) FROM rgb AS c
    2815}}}
    2916
     17In all of these cases rasql should throw an exception: "Invalid scaling minterval".
    3018
    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 
     19Scaling in rasdaman is handled in source:qlparser/qtbinaryfunc.cc (QtScale class).