Opened 11 years ago

Closed 11 years ago

#409 closed defect (worksforme)

RASJ: use of converter in RASQL query generates error

Reported by: Dirk Daems Owned by: Dimitar Misev
Priority: major Milestone: 8.4.4
Component: java Version: 8.4
Keywords: Cc: Peter Baumann
Complexity: Medium

Description

The use of the inv_tiff() converter in a RASQL query executed using the RASJ API generates an error. However, If I add the same TIFF file using the same commands via the RASQL command-line client, the file is uploaded correct.

org.odmg.QueryException: Execution error 381 in line 1, column 34, near token inv_tiff: Error in convertor of the selected data exchange format.
             at rasj.odmg.RasOQLQuery.execute(RasOQLQuery.java:238)
             at CreateCollection.main(CreateCollection.java:42)

Added a simple Java class which contains the code causing the issue described above.

Attachments (1)

CreateCollection.java (1.3 KB ) - added by Dirk Daems 11 years ago.

Download all attachments as: .zip

Change History (4)

by Dirk Daems, 11 years ago

Attachment: CreateCollection.java added

comment:1 by Dimitar Misev, 11 years ago

Cc: Peter Baumann added
Status: newaccepted

comment:2 by Dimitar Misev, 11 years ago

Milestone: 8.4.4

comment:3 by Dimitar Misev, 11 years ago

Resolution: worksforme
Status: acceptedclosed

In the patch I submitted for #408 I included a test case for this, see source:java/src/tests/UpdateTest.java

Basically the problem is that the MDD interval should be 1D (e.g. 0 : file size in bytes), and the type should be 1D as well (GreyString). This is because when the tiff file is read by rasdaman it's still just an array of bytes encoded in some format, not an array understandable by rasdaman. Only after it's decoded by the tiff converter it can get the proper type and domain.

Note: See TracTickets for help on using tickets.