Opened 8 years ago

Closed 8 years ago

#1229 closed defect (fixed)

WCPS1.5_Error when parsing a multiple by a mask

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

Description

WCPS query

for r in (rgb) return encode (
 r * ((r.green > 130) and (r.red < 100) and (r.blue < 140)) 
 ,"png", "nodata = 0")

will returns error in WCPS 1.5

<ows:Exception exceptionCode="RuntimeError">
<ows:ExceptionText>
petascope.wcps2.error.managed.processing.WCPSProcessingError : A parsing error occurred at position=1:108. Offending symbol is=[@39,108:108='=',<25>,1:108]. Parser message=mismatched input '=' expecting STRING_LITERAL.
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>

while returns Rasql query in WCPS 1.0 and image

select encode(
((r)*((((((((r).1)>(130)))and((((r).0)<(100)))))and((((r).2)<(140))))))
, "PNG", "nodata = 0;xmin=0.0;xmax=399.0;ymin=0.0;ymax=343.0;crs=OGC:Index2D") from rgb AS r where oid(r)=45057

Change History (1)

comment:1 by Bang Pham Huu, 8 years ago

Resolution: fixed
Status: newclosed

The problem due to space in encoding nodata = ". Patch was accepted, close ticket.

Note: See TracTickets for help on using tickets.