[GRASS-dev] Re: [GRASS GIS] #809: v.db.addtable consistently fails
in winGrass
GRASS GIS
trac at osgeo.org
Wed Jan 6 07:38:34 EST 2010
#809: v.db.addtable consistently fails in winGrass
------------------------------+---------------------------------------------
Reporter: JonBall | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: critical | Milestone: 6.4.0
Component: Vector | Version: svn-releasebranch64
Resolution: | Keywords: v.db.addtable, wingrass
Platform: MSWindows Vista | Cpu: x86-64
------------------------------+---------------------------------------------
Comment (by hamish):
Replying to [comment:9 hamish]:
> I'm guessing G_tokenize(buf, ' ') + the same approach taken
> by the wxGUI for this some weeks ago and pull off db as tokens
> 4 to (ntok-1) and then drv with the last of G_number_of_tokens()?
>
> I suppose a similar thing could be done with strrchr() to chop
> the drv off the string first, set strrchr() to '\0', then to
> get db go back and read {{{ %[^\n] }}} to the end of the
> remaining line?
an advantage of the G_tokenize() approach is that we can check for a
minimum number of tokens.
> if a layer 1 exists* it uses the default mapset/VAR values from
> db.connect,
that should read "does not exist"
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/809#comment:10>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list