Opened 6 years ago

Closed 6 years ago

#1679 closed enhancement (fixed)

RasdaPy_Support for other parameters (-f, --mddomain, --mddtype) besides --query?

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

Description (last modified by Bang Pham Huu)

Dimitar wants to test RasdaPy API as same as rasql client, it means it should support other parameters (e.g: -f, —mddomain, —mddtype) besides the mandatory —query parameter, e.g in this query:

rasql -q 'insert into test_struct values $1' 
-f '/home/rasdaman/rasdaman_community/rasdaman/systemtest/testcases_mandatory/test_select/testdata/23k.bin' 
--mdddomain '[0:99,0:9,0:0]' 
--mddtype struct_cube --user rasadmin --passwd rasadmin

From that I understand and need to verify, this feature is not available in RasdaPy.
In rasj, Dimitar's example shows it can support mddtype, mddarray

// create 2-D MDD with cell length 1, i.e., type byte:
RasGMArray myMDD =
new RasGMArray(new RasMInterval( "[1:400,1:400]" ), 1 );
// assume that there is some byte array prepared, insert it:
myMDD.setArray( mydata );
// set image type name
// (see distribution file examples/rasdl/basictypes.dl):
myMDD.setObjectTypeName("GreyImage")

This is a missing feature and need to be added, somehow?

Change History (2)

comment:1 by Bang Pham Huu, 6 years ago

Description: modified (diff)

comment:2 by Bang Pham Huu, 6 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.