Details Ticket 4496


Comment | Reply | Take | Open


Serial Number 4496
Subject v.rast.stats does not handle null values with sqlite dirver
Area grass6
Queue grass
Requestors david.p.finlayson@gmail.com
Owner none
Status resolved
Last User Contact Sun Jul 2 23:21:23 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Sun Jul 2 23:21:25 2006 (2 yr ago)
Created Tue May 23 23:53:16 2006 (2 yr ago)

Transaction History Ticket 4496


Tue, May 23 2006 23:53:16    Request created by guest  
Subject: v.rast.calc does not handle null values with sqlite dirver

Platform: GNU/Linux/x86
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: grass-6.1.cvs_src_snapshot_2006_05_13

using sqlite driver.

When executing v.rast.stats on a vector file that is larger than the underlying
raster, v.rast.stats attempts to insert "nan" into the sqlite table for categories
where no data was found. 

If fails with the following (syntax?) error:

DBMI-SQLite driver error:
Error in sqlite3_prepare():
no such column: nan

ERROR: Error while executing: "UPDATE ps_model SET navd88_cf_var=nan where
       cat=35
       "
I think that if you insert a "nan" (quoted) it will work. However, maybe a null
would be better here since this is a numeric column?


Thu, May 25 2006 20:15:20    Subject changed to v.rast.stats does not handle null values with sqlite dirver by msieczka  
Sun, Jul 2 2006 23:21:23    Mail sent by mneteler  
Hi,

thanks for finding, fixed in CVS.

Markus
Sun, Jul 2 2006 23:21:25    Status changed to resolved by mneteler  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request