Changes between Version 46 and Version 47 of FAQ


Ignore:
Timestamp:
Sep 4, 2010, 3:49:08 PM (14 years ago)
Author:
Peter Baumann
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • FAQ

    v46 v47  
    5959=== Rasql queries ===
    6060
    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 
    6761 * '''Q: This query doesn't work:'''
    6862{{{
     
    8478   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.
    8579
     80 * '''Q: This insert query produces error 821 (cell type mismatch) although I provide a TIFF file with correct pixel type:'''
     81{{{
     82insert 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{{{
     87insert into FloatCollection values (float) inv_tiff( $1 )
     88}}}
     89
    8690=== Rasj and Java ===
    8791