[GRASS-user] Database driver problem
Glynn Clements
glynn at gclements.plus.com
Thu Oct 1 13:31:22 EDT 2009
Markus Neteler wrote:
> > I've tried importing the spearfish_contours files via File-->Import Vector
> > Map-->Multiple Formats Using OGR and get this message
> >
> > Invalid argument: can't _spawnl
> > Unable to start driver <sqlite>
> Could the problem be that \ and / slashes are used?
Quite possibly. Try this:
--- lib/db/dbmi_base/dbmscap.c (revision 39364)
+++ lib/db/dbmi_base/dbmscap.c (working copy)
@@ -175,6 +175,7 @@
dirpath = G_malloc(strlen("\"\\driver\\db\\\"")
+ strlen(G_gisbase()) + strlen(ent->d_name) + 1);
sprintf(dirpath, "\"%s\\driver\\db\\%s\"", G_gisbase(), ent->d_name);
+ G_convert_dirseps_to_host(dirpath);
#else
G_asprintf(&dirpath, "\"%s/driver/db/%s\"", G_gisbase(), ent->d_name);
#endif
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list