Opened 15 years ago

Closed 13 years ago

#9 closed defect (invalid)

conversion dem() not work

Reported by: j.yu@… Owned by: cj
Priority: critical Milestone: Future
Component: qlparser Version: 8.1
Keywords: Cc:
Complexity: Medium

Description (last modified by Peter Baumann)

rasdaman@bronx:~$ rasql -q "select dem(a) from mr as a"
rasql: rasdaman query tool v1.0, rasdaman v8 — generated on 08.09.2009 08:32:43.
opening database RASBASE at localhost:7001...ok
Executing retrieval query…rasdaman error 0: Exception: Transfer Failed
aborting transaction…ok
rasql done.

Change History (4)

comment:1 by Peter Baumann, 15 years ago

Description: modified (diff)
Owner: set to cj
Priority: majorcritical
Status: newassigned

comment:2 by cj, 15 years ago

The DEM operator requires additional parameters in order to run. So a sample query should look like:
./rasql -q 'select dem(a,"startx=0,starty=0,endx=10,endy=10,resx=5,resy=5") from mr as a' —out file

This still crashes the server but I don't know if the parameters I give make sense.

comment:3 by cj, 15 years ago

The query above fails because:

  • flipy is by default 1 and then at some point in the program it calculates

min.y=collBBox.endy - yhigh*collBBox.resy;
max.y=collBBox.endy - ylow*collBBox.resy;

and min.y is less then 0. A method checks sanity of this parameter and obviously throws an exception which unfortunately also crashes the server.

A query that works is:
./rasql -q 'select dem(a,"startx=0,starty=0,endx=1000,endy=1000,resx=0.1,resy=0.15") from mr as a' —out file

comment:4 by Dimitar Misev, 13 years ago

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