Opened 10 years ago

Closed 10 years ago

#638 closed defect (fixed)

CSV encoding problem with multiband collections

Reported by: Piero Campalani Owned by: uagha
Priority: blocker Milestone: 9.0
Component: conversion Version: development
Keywords: csv encoding multiband rgb Cc: Dimitar Misev
Complexity: Hard

Description

CSV does not seem to provide idempotent responses with multiband collections:

$ rasql -q "select csv(c) from rgb AS c" --out string > out1.tmp
$ rasql -q "select csv(c) from rgb AS c" --out string > out2.tmp
$ diff out1.tmp out2.tmp

Looking at the outputs, there are some contiguous values which change, others do not.

This does not seem to happen with single band collections (I tried mr)

Change History (5)

comment:1 by Dimitar Misev, 10 years ago

Owner: changed from Dimitar Misev to uagha
Status: newassigned

Ok this is bug introduced by Uneeb..

Uneeb I thought you have fixed the csv system test?? This is what I get (the second test is rgb:

test.sh: ----- csv and inv_csv conversion ------
test.sh: creating collection... ok.
test.sh: inserting data... ok.
test.sh: selecting data... ok.
test.sh: comparing images: input and output match
test.sh: ----- csv and inv_csv conversion ------
test.sh: creating collection... ok.
test.sh: inserting data... ok.
test.sh: selecting data... ok.
test.sh: comparing images: input and output do not match

comment:2 by Dimitar Misev, 10 years ago

Piero since you've recompiled, can you re-test this one?

comment:3 by Piero Campalani, 10 years ago

Yes of course.. Unluckily it is still there!

comment:4 by Dimitar Misev, 10 years ago

Patch submitted, confirmed to work by both me and Piero.

comment:5 by Dimitar Misev, 10 years ago

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