Opened 9 years ago

Closed 8 years ago

#1227 closed defect (fixed)

Rasql_should throw appropriate exception if encode in unsupported format

Reported by: Bang Pham Huu Owned by:
Priority: minor Milestone: 9.3
Component: rasql Version: development
Keywords: Cc: Dimitar Misev, Alex Dumitru
Complexity: Medium

Description

WCPS query

for c in (rgb) return encode( exp((c.1)[ i(000:400), j(000:450) ]/ 100000) , "ccccc")

with Rasql from WCPS 1.0 it will returns error

<ows:Exception exceptionCode="SemanticError">
<ows:ExceptionText>
Error evaluating rasdaman query: 'select ccccc(exp((((c).1[0:400,-107:343])/(100000)))) from rgb AS c where oid(c)=45057
</ows:ExceptionText>
</ows:Exception>
<ows:Exception exceptionCode="RasdamanRequestFailed">
<ows:ExceptionText>
Error evaluating rasdaman query: 'select ccccc(exp((((c).1[0:400,-107:343])/(100000)))) from rgb AS c where oid(c)=45057
</ows:ExceptionText>
</ows:Exception>
<ows:Exception exceptionCode="RuntimeError">
<ows:ExceptionText>
org.odmg.QueryException : Parsing error 300 in line 1, column 13: Unexpected name (.
</ows:ExceptionText>

with Rasql from WCPS 2.0 it will returns error

<ows:Exception exceptionCode="SemanticError">
<ows:ExceptionText>
Error evaluating rasdaman query: 'SELECT encode(exp( ( c.1 ) [0:400,-107:343] / 100000 ), "ccccc" ) FROM rgb AS c
</ows:ExceptionText>
</ows:Exception>
<ows:Exception exceptionCode="RasdamanRequestFailed">
<ows:ExceptionText>
Error evaluating rasdaman query: 'SELECT encode(exp( ( c.1 ) [0:400,-107:343] / 100000 ), "ccccc" ) FROM rgb AS c
</ows:ExceptionText>
</ows:Exception>
<ows:Exception exceptionCode="RuntimeError">
<ows:ExceptionText>
org.odmg.QueryException : Unexpected internal server error.
</ows:ExceptionText>
</ows:Exception>

It should throw an exception like "cannot encode in "ccccc", the supported encoding is "png", "csv", "tiff", "hdf", "netcdf", …. and it will help to know what types of encoding which Rasdaman supports now.

Change History (1)

comment:1 by Bang Pham Huu, 8 years ago

Milestone: 10.09.3
Resolution: fixed
Status: newclosed

It looks like it was fixed, close ticket

<ows:ExceptionReport version="2.0.0" xsd:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd">
<ows:Exception exceptionCode="SemanticError"><ows:ExceptionText>Error evaluating rasdaman query: 'SELECT encode(exp(  ( c.1 ) [0:350,0:250] / 100000 ), "ccccc" , "xmin=0;ymin=93;xmax=350;ymax=343") FROM rgb AS c</ows:ExceptionText></ows:Exception>

<ows:Exception exceptionCode="RasdamanRequestFailed"><ows:ExceptionText>Error evaluating rasdaman query: 'SELECT encode(exp(  ( c.1 ) [0:350,0:250] / 100000 ), "ccccc" , "xmin=0;ymin=93;xmax=350;ymax=343") FROM rgb AS c</ows:ExceptionText></ows:Exception>
<ows:Exception exceptionCode="RuntimeError">
<ows:ExceptionText>org.odmg.QueryException :
 Exception: Conversion format is not supported.</ows:ExceptionText></ows:Exception></ows:ExceptionReport>
Note: See TracTickets for help on using tickets.