Opened 4 years ago

Closed 4 years ago

#2323 closed defect (fixed)

petascope - supports encoding with null values as interval in encode()

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 10.0
Component: server Version: 9.8
Keywords: Cc: Vlad Merticariu
Complexity: Medium

Description

With null values interval "9.96921e+35:*", it has this error:

SELECT encode(c, "image/tiff" , "{\"geoReference\":{\"crs\":\"EPSG:4326\",\"bbox\":{\"xmin\":-54.949999999999946,\"ymin\":73.28999999999999997,\"xmax\":-54.87999999999994597,\"ymax\":73.36}},\"metadata\":{\"AREA_OR_POINT\":\"Area\"},
\"nodata\":[\"9.96921e+35:*\"]}") 
FROM test_float32_asterisk_as_null_values AS c'... parsing... checking semantics... optimizing (level 3)... evaluating... [ERROR] - 2020-06-18 13:01:43,767, 

parameter 'nodata' has an invalid value, expected an array of double values.
rasdaman error 242: Exception: Invalid format parameter.

Change History (2)

comment:1 by Bang Pham Huu, 4 years ago

Owner: changed from Dimitar Misev to Bang Pham Huu
Summary: rasql - supports encoding with null values as interval in encode()petascope - supports encoding with null values as interval in encode()

Petascope should filter these interval null values when creating rasql encode() query.
Before that, one needs to add in the ingredients file with 2 null values like this:

    "default_null_values": [9.96921e+36, "9.96921e+35:*"]

and "9.96921e+35:*" will be filtered for rasql encode() query.

If you specify a null value interval in wcst_import.sh, note that during encode it will not be preserved in the encoded result like tiff because null value intervals are not supported by most formats. In this case it is recommended to specify in addition a non-interval null value, which will be used for encode.

comment:2 by Bang Pham Huu, 4 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.