Opened 8 years ago

Closed 7 years ago

#1390 closed defect (wontfix)

Rasql_Nodata values with list in GTIFF returns wrong values when shown by gdalinfo

Reported by: Bang Pham Huu Owned by: Dimitar Misev
Priority: major Milestone: 10.0
Component: rasql Version: development
Keywords: nodata list values Cc: Dimitar Misev
Complexity: Medium

Description

when query with the old style (not JSON format) with a list of nodata values for each band of rgb coverage, it returns wrong values. If only 1 nodata value then it works correctly.

rasql -q 'select encode(c, "gtiff", "nodata=250,251,252") from rgb as c' --out file
rasql: rasdaman query tool v1.0, rasdaman 9.2.1.
opening database RASBASE at localhost:7001...ok
Executing retrieval query...ok
Query result collection has 1 element(s):
  Result object 1: going into file rasql_1.tif...ok.
rasql done.
[rasdaman@gonzo eraint]$ gdalinfo rasql_1.tif
Driver: GTiff/GeoTIFF
Files: rasql_1.tif
Size is 400, 344
Coordinate System is `'
Metadata:
  NODATA_VALUES=1.79769e+308 1.79769e+308 1.79769e+308
Image Structure Metadata:
  INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (    0.0,    0.0)
Lower Left  (    0.0,  344.0)
Upper Right (  400.0,    0.0)
Lower Right (  400.0,  344.0)
Center      (  200.0,  172.0)
Band 1 Block=400x6 Type=Byte, ColorInterp=Red
  NoData Value=1.79769313486231571e+308
Band 2 Block=400x6 Type=Byte, ColorInterp=Green
  NoData Value=1.79769313486231571e+308
Band 3 Block=400x6 Type=Byte, ColorInterp=Blue
  NoData Value=1.79769313486231571e+308
[rasdaman@gonzo eraint]$ gdalinfo rasql_1.tif

Change History (3)

comment:1 by Dimitar Misev, 7 years ago

what about new style format parameters?

in reply to:  1 comment:2 by Bang Pham Huu, 7 years ago

Replying to dmisev:

what about new style format parameters?

in metadata tag of tiff is correct from coverage which has 3 bands and each band has different no_data value.

NODATA_VALUES=100 12 23
resolution=1

Image Structure Metadata:

INTERLEAVE=PIXEL

Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0, 100.0)
Upper Right ( 100.0, 0.0)
Lower Right ( 100.0, 100.0)
Center ( 50.0, 50.0)
Band 1 Block=100x27 Type=Byte, ColorInterp=Red

NoData Value=100

Band 2 Block=100x27 Type=Byte, ColorInterp=Green

NoData Value=100

Band 3 Block=100x27 Type=Byte, ColorInterp=Blue

NoData Value=100

comment:3 by Dimitar Misev, 7 years ago

Resolution: wontfix
Status: newclosed

Ok, I'll close it as wontfix as old style format parameters are deprecated.

Note: See TracTickets for help on using tickets.