#2692 closed defect (fixed)

add --queryfile to rasql and support --out formatted

Reported by: Dimitar Misev Owned by: Dimitar Misev
Priority: major Milestone: 10.1
Component: rasql Version: development
Keywords: Cc: Peter Baumann
Complexity: Medium

Description

An option allowing to read a query from a file should be supported in rasql. This is helpful when shell escaping becomes cumbersome or even problematic.

--queryfile <file>
    file containing the query string to be sent to the 
    rasdaman server for execution

Furthermore, the --out formatted option currently does not print anything and should be fixed to print the array values properly formatted to stdout in format:

  1. single-band arrays:
    cell1,cell2,cell3,....
    ...
    
  2. multi-band arrays:
    {band1cell1,band2cell1,...},{band1cell2,band2cell2,...},...
    ...
    

In both cases a new line \n is printed whenever the extent of the last axis is iterated, e.g. for domain [0:100,1:10] an \n will be printed after every 10 values.

Change History (1)

comment:1 by Dimitar Misev, 21 months ago

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