Changes between Version 46 and Version 47 of FAQ
- Timestamp:
- Sep 4, 2010, 3:49:08 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FAQ
v46 v47 59 59 === Rasql queries === 60 60 61 * '''Q: This insert query produces error 821 (cell type mismatch) although I provide a TIFF file with correct pixel type:'''62 {{{ insert into FloatCollection values inv_tiff( $1 )}}}63 64 A: You need to provide an explicit cast (see section 9.8 in the Rasql Guide); a correct phrasing of this query is:65 {{{ insert into FloatCollection values (float) inv_tiff( $1 )}}}66 67 61 * '''Q: This query doesn't work:''' 68 62 {{{ … … 84 78 A: Division of two integers yields an integer. If you want to have a float result then you need to cast the operands (that is: at least one of them) to float or double. 85 79 80 * '''Q: This insert query produces error 821 (cell type mismatch) although I provide a TIFF file with correct pixel type:''' 81 {{{ 82 insert into FloatCollection values inv_tiff( $1 ) 83 }}} 84 85 A: You need to provide an explicit cast (see section 9.8 in the Rasql Guide); a correct phrasing of this query is: 86 {{{ 87 insert into FloatCollection values (float) inv_tiff( $1 ) 88 }}} 89 86 90 === Rasj and Java === 87 91