Opened 9 years ago

Last modified 8 years ago

#1233 closed defect

WCPS1.5_Error when parsing imageCrsDomain, imageCrs in axis — at Version 2

Reported by: Bang Pham Huu Owned by:
Priority: major Milestone: 9.3
Component: petascope Version: development
Keywords: WCPS 2.0, error in reducing, imageCrsdomain error Cc: Dimitar Misev, Alex Dumitru, Vlad Merticariu
Complexity: Medium

Description (last modified by Bang Pham Huu)

WCPS query

for c in ( mr ), d in (rgb) return avg(
 scale( c[i(120:150), j(120:150)], 
imageCrsDomain(d[i:"CRS:1"(10:20), j:"CRS:1"(10:20)]) 
 )
)

returns error in WCPS 2.0

<ows:Exception exceptionCode="RuntimeError">
<ows:ExceptionText>
petascope.wcps2.error.managed.processing.WCPSProcessingError :
 A parsing error occurred at position=1:76. 
Offending symbol is=[@34,76:89='imageCrsDomain',<78>,1:76]. 
Parser message=no viable alternative at input 'avg(scale(c[i(120:150),j(120:150)],imageCrsDomain'.
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

while returns Rasql query in WCPS 1.0

select avg_cells(
  scale( c[120:150,60:90], [10:20,10:20] )
) 
from rgb AS d, mr AS c where oid(d)=45057 and oid(c)=45569

and value "170.44628099173553"


Also with imageCrs

87-get_metadata_imagecrs.test

for c in (eobstest) return imageCrs(c)
    <ows:Exception exceptionCode="RuntimeError">
        <ows:ExceptionText>petascope.wcps2.error.managed.processing.WCPSProcessingError : A parsing error occurred at position=1:27. Offending symbol is=[@7,27:34='imageCrs',&lt;78&gt;,1:27].
Parser message=no viable alternative at input 'imageCrs'.</ows:ExceptionText>
    </ows:Exception>

Change History (2)

comment:1 by Bang Pham Huu, 9 years ago

same with 80-match_scale.test

for c in ( mr ), c2 in (rgb)
return
avg( scale( c, imageCrsDomain(c2) ) )

and 83-match_scale_3d.test

for c in ( mr ), d in (eobstest)
return avg(scale( c[i(120:150),j(120:150)], imageCrsDomain(d[t(0),Long:"CRS:1"(10:20),Lat:"CRS:1"(10:20)]) ))
 <ows:ExceptionText>petascope.wcps2.error.managed.processing.WCPSProcessingError : 

A parsing error occurred at position=3:15. Offending symbol is=[@19,51:64='imageCrsDomain',&lt;78&gt;,3:15]. 

Parser message=no viable alternative at input 'avg(scale(c,imageCrsDomain'.</ows:ExceptionText>
    </ows:Exception>


Last edited 9 years ago by Bang Pham Huu (previous) (diff)

comment:2 by Bang Pham Huu, 9 years ago

Description: modified (diff)
Summary: WCPS1.5_Error when parsing imageCrsDomain in axisWCPS1.5_Error when parsing imageCrsDomain, imageCrs in axis
Note: See TracTickets for help on using tickets.