[GRASS-user] Re: [GRASS-windows] Re: v.in.ascii fails with long text file in WinGRASS-6.4.0-1

Glynn Clements glynn at gclements.plus.com
Tue Sep 21 04:00:25 EDT 2010


Luigi Ponti wrote:

> > Any ideas? A change introduced in 6.4.0-1 has rendered WinGRASS 
> > unusable to me [...]
>                    
> Thanks for the work on ticket #1159 http://trac.osgeo.org/grass/ticket/1159
> 
> I am wondering if there is a way by which I can restore v.in.ascii 
> functionality in 6.4.0 until a fix is found for the problem. I am 
> probably asking an unsound question: is there a way to compile the code 
> in the state it was before the issue arose?

You can prevent the error with:

--- vector/v.in.ascii/in.c~	2010-09-04 16:31:59.000000000 +0100
+++ vector/v.in.ascii/in.c	2010-09-21 08:57:12.000000000 +0100
@@ -519,8 +519,7 @@
 	if (driver) {
 	    G_message(_("Populating table..."));
 	    db_commit_transaction(driver);
-	    if(db_close_database_shutdown_driver(driver) == DB_FAILED)
-		G_fatal_error(_("Could not close attribute table. The DBMI driver did not accept all attributes"));
+	    db_close_database_shutdown_driver(driver);
 	}
 	fclose(tmpascii);
     }

db_close_database_shutdown_driver() is incorrectly reporting errors on
Windows. v.in.ascii is the only module which checks the return status,
so it's the only module which is affected.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list