1 | # testing tiling specification on commandline and with rasimport
|
---|
2 | # image to be imported is 7890 x 6880, gdal data type Int32
|
---|
3 |
|
---|
4 | # creating the colleciton
|
---|
5 | rasql -q "create collection t1int32 LongSet"
|
---|
6 | --> collection created
|
---|
7 |
|
---|
8 | #-----------------------------------------------------------------
|
---|
9 | # commandline: one step import - aligned tiling
|
---|
10 | rasql -q 'insert into t1int32 values inv_tiff($1) tiling aligned [0:499,0:499] tile size 1000000' --file t1int32.tiff
|
---|
11 | --> file inserted as expected
|
---|
12 |
|
---|
13 | #-----------------------------------------------------------------
|
---|
14 | # commandline: import by update - aligned tiling
|
---|
15 | rasql -q 'insert into t1int32 values marray x in [0:0,0:0] values 0l tiling aligned [0:499,0:499] tile size 1000000'
|
---|
16 | --> initial one pixel image inserted
|
---|
17 |
|
---|
18 | rasql -q 'update t1int32 as c set c assign shift(inv_tiff($1), [0,0]) where oid(c) = 141313' --file t1int32.tiff
|
---|
19 | --> fails with Excpetion "Transfer Failed"
|
---|
20 |
|
---|
21 | # SERVER LOG
|
---|
22 | Request: 'update t1int32 as c set c assign shift(inv_tiff(#MDD0#), [0,0]) where oid(c) = 141313'...parsing...checking semantics...
|
---|
23 | QtConversion::checkType() for conversion inv_tiff assume the result marray <char>
|
---|
24 | evaluating...TIFF warning: /tmp/0x8b2c210.tif: unknown field with tag 33550 (0x830e) encountered
|
---|
25 | TIFF warning: /tmp/0x8b2c210.tif: unknown field with tag 33922 (0x8482) encountered
|
---|
26 | QtConversion::evaluate() for conversion inv_tiff real result is marray <long>
|
---|
27 | Entering CalcAligned Tiling
|
---|
28 | CalcAligned Tiling: tile number: 14
|
---|
29 | CalcAligned Tiling: tile number2: 14
|
---|
30 |
|
---|
31 | #-----------------------------------------------------------------
|
---|
32 | # commandline: one step import - directional tiling
|
---|
33 | rasql -q 'insert into t1int32 values inv_tiff($1) tiling directional [0,1000,1500,3000,5000,7889],[0,2000,4000,6000,6879]' --file t1int32.tiff
|
---|
34 | --> file inserted as expected
|
---|
35 |
|
---|
36 | #------------------------------------------------------------------
|
---|
37 | # commandline: import by update - directional tiling
|
---|
38 | rasql -q 'insert into t1int32 values marray x in [0:0,0:0] values 0l tiling directional [0,1000,1500,3000,5000,7889],[0,2000,4000,6000,6879]' --user rasdaman --passwd rasdaman
|
---|
39 | rasql: rasdaman query tool v1.0, rasdaman osgeolive.5-3-g8e18567 -- generated on 01.02.2013 11:52:01.
|
---|
40 | opening database RASBASE at localhost:7001...ok
|
---|
41 | Executing update query...rasdaman error 0: Exception: Limits reported to an object mismatch
|
---|
42 |
|
---|
43 | # SERVER LOG
|
---|
44 | Request: 'insert into t1int32 values marray x in [0:0,0:0] values 0l tiling directional [0,1000,1500,3000,5000,7889],[0,2000,4000,6000,6879]'...parsing...checking semantics...evaluating...Entering CalcDir Tiling
|
---|
45 | r_Dir_Tiling::compute_tiles([0:0,0:0], 4) upper limit of domain (2) at dimension 0 (0:0) does not partition 7889
|
---|
46 | Error: 0 (no explanation text available for this error code.)
|
---|
47 |
|
---|
48 | #-------------------------------------------------------------------------
|
---|
49 | # rasimport: aligned tiling
|
---|
50 | rasimport -f ~/garage/img/t1int32.tiff -coll t1int32 -tiling "tiling aligned [0:499,0:499] tile size 1000000"
|
---|
51 | --> works, i.e. no exception thrown
|
---|
52 |
|
---|
53 | # rasimport: directional tiling
|
---|
54 | rasimport -f ~/garage/img/t1int32.tiff -coll t1int32 -tiling "tiling directional [0,7889],[0,4251,6879]"
|
---|
55 | --> fails upon insertion of initial one pixel image with: "Limits reported to an object mismatch"
|
---|
56 |
|
---|
57 |
|
---|
58 |
|
---|
59 |
|
---|