Opened 8 years ago

Closed 8 years ago

#1326 closed defect (fixed)

WCPS1.5_Wrong domain set (slice, trim expression) in Rasql from translated WCPS query

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

Description

WCS request

service=WCS&version=2.0.1&request=GetCoverage&coverageId=eobstest&
subset=Lat(30,45)&subset=Long(25,30)&subset=t(0)&format=image/tiff&
subsettingCrs=http://localhost:8080/def/crs/EPSG/0/4269&outputCrs=http:
//localhost:8080/def/crs/EPSG/0/4269

translated WCPS

for c in (eobstest) return encode(
crsTransform( trim(
 slice(
   trim(c,{Lat:"http://localhost:8080/def/crs/EPSG/0/4269" (30:45)}),{t:"http://localhost:8080/def/crs/EPSG/0/4269" (0)}),{Long:"http://localhost:8080/def/crs/EPSG/0/4269" (25:30)}),
{ Long: " http://localhost:8080/def/crs/EPSG/0/4269 ", Lat: " http://localhost:8080/def/crs/EPSG/0/4269 "  }, {} ), "tiff")

Return in WCPS 1.0

select encode(
project( c[0,0:10,61:91], 
"25.0,30.0,30.0,45.0", "EPSG:4326", "EPSG:4269" ), "GTiff") from eobstest AS c where oid(c)=1537

and error in WCPS 1.5 with multiple domain intervals

Error evaluating rasdaman query: '
SELECT encode(project( c[*:*,*:*,61:90][0,*:*,*:*][*:*,0:9,*:*], 
"25.0,-40.5,75.5,75.5", "EPSG:4326", "EPSG:4269" ), 
"GTiff" , "xmin=25.0;xmax=75.5;ymin=-40.5;ymax=75.5;crs=EPSG:4326") FROM eobstest AS c

Change History (1)

comment:1 by Bang Pham Huu, 8 years ago

Resolution: fixed
Status: newclosed

This ticket was fixed in the WCPS 1.5 with the slicing,trimming in Rasql expression correctly.

SELECT encode(project( c[0:5,0:100,62:90][0,0:100,62:90][0:9,62:90],
"25,29.999,29.999,44.999", "EPSG:4269", "EPSG:4269" ),
"GTiff", 
"xmin=25;ymin=29.999;xmax=29.999;ymax=44.999;crs=EPSG:4269") FROM eobstest AS c

However, due to it has error in Rasql, then this correct query cannot run http://rasdaman.org/ticket/1343, then close as fixed in WCPS 1.5.

Note: See TracTickets for help on using tickets.