Opened 11 years ago

Last modified 9 years ago

#595 closed defect

WCPS domain metadata expression inside interval — at Initial Version

Reported by: Piero Campalani Owned by: Piero Campalani
Priority: major Milestone: 10.0
Component: petascope Version: development
Keywords: domain interval Cc: Peter Baumann, Vlad Merticariu, Alex Dumitru
Complexity: Medium

Description

domain expressions are not correctly mapped to RasQL queries.

WCPS grammar says:

dimensionIntervalExpr:
    scalarExpr : scalarExpr
  | _domain_ ( coverageName , axisName , crsName )

But then the output of the domain metadata expression is not translated to a proper subset in RasQL: it is pasted onto the query instead, causing error.

for c in (eobscov)
return encode(
  c[Lat( domain(c, Lat, "http://localhost:8090/def/crs/EPSG/0/4326") )]
, "csv")

WCPS Error: Could not evaluate rasdaman query: 'select csv((c) [*:*,*:*,(-40.5,75.5)]) from eobstest AS c' 

…is translated to:

--- select csv((c) [*:*,*:*,(-40.5,75.5)]) from eobstest AS c
+++ select csv((c) [*:*,*:*,0:231)])       from eobstest AS c

@Peter: regarding the WCPS standard: I believe imageCrsDomain( coverageExpr , axisName ) should be allowed as well, for WCPS 2.0 ?
So that:

dimensionIntervalExpr:
    scalarExpr : scalarExpr
  | _domain_ ( coverageName , axisName , crsName )
  | _imageCrsDomain_ ( coverageName , axisName )

Change History (0)

Note: See TracTickets for help on using tickets.