Opened 12 years ago

Closed 12 years ago

#104 closed enhancement (fixed)

No error message while importing unsupported tiled TIFF

Reported by: joachim.ungar@… Owned by: Dimitar Misev
Priority: minor Milestone:
Component: conversion Version: 8.2
Keywords: tiff, import, tiled Cc: Peter Baumann
Complexity: Medium

Description

I used RPMs from http://urchin.spbcas.ru/elip/ on a CentOS 6 machine.

There were some problems while importing tiff images:

I had to create a type definition for my four-band data. [see attachment]

Inserting a TIFF (via rasql) showed no error whatsoever a collection with the correct extent (~ 6000x6000) was created. Hex and TIFF output though showed that the collection was filled with 0's.

rasql -q "select m[0:10,0:10] from mr as m" —out hex

rasql: rasdaman query tool v1.0, rasdaman v8 -- generated on 23.12.2011 09:32:23.
opening database RASBASE at localhost:7001...ok
Executing retrieval query...ok
Query result collection has 1 element(s):
  Result object 1:  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 
rasql done.

console output:

rasql: rasdaman query tool v1.0, rasdaman v8 -- generated on 23.12.2011 09:32:23.
opening database RASBASE at localhost:7001...ok
fetching type information for GreyString from database, using readonly transaction...ok
reading file 091117P600300036L0000S4_imagery.tif...ok
  constant 1: GMarray
  Oid...................: 
  Type Structure........: 
  Type Schema...........: marray< char >
  Domain................: [0:191109432]
  Base Type Schema......: char
  Base Type Length......: 1
  Data format.......... : Array
  Data size (bytes).... : 191109433
Executing update query...ok
rasql done.

N?.log tells me that:

...
TIFF error: Can not read scanlines from a tiled image
...

I don't think that this is the reason for the import error (see next ticket). But I suggest to add an error message (that tiled TIFFs are not supported) while importing.

Attachments (3)

basictypes.dl (172 bytes ) - added by joachim.ungar@… 12 years ago.
type definition file
N1.017307.log (1.5 MB ) - added by joachim.ungar@… 12 years ago.
N1 log file
rasmgr.017284.log (2.8 KB ) - added by joachim.ungar@… 12 years ago.
rasmgr log file

Download all attachments as: .zip

Change History (5)

by joachim.ungar@…, 12 years ago

Attachment: basictypes.dl added

type definition file

by joachim.ungar@…, 12 years ago

Attachment: N1.017307.log added

N1 log file

by joachim.ungar@…, 12 years ago

Attachment: rasmgr.017284.log added

rasmgr log file

comment:1 by Dimitar Misev, 12 years ago

Cc: Peter Baumann added
Owner: changed from Peter Baumann to Dimitar Misev
Status: newaccepted

Joachim,

can you provide me with a smaller tiled image on which I can reproduce this? The error is reported by libtiff, and this should have been caught in rasdaman, so it's a bug to be fixed.

comment:2 by Dimitar Misev, 12 years ago

Resolution: fixed
Status: acceptedclosed

Submitted patch that fixes it.

Note: See TracTickets for help on using tickets.