Opened 8 years ago

Closed 6 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:

Description (last modified by pbaumann)

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 Changed 7 years ago by pbaumann

  • Description modified (diff)
  • Owner set to cj
  • Priority changed from major to critical
  • Status changed from new to assigned

comment:2 Changed 7 years ago by cj

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 Changed 7 years ago by cj

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 Changed 6 years ago by dmisev

  • Resolution set to invalid
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.