[GRASS-dev] Re: [GRASS GIS] #488: v.db.addcol/v.rast.stats not working

GRASS GIS trac at osgeo.org
Mon Mar 30 15:24:56 EDT 2009


#488: v.db.addcol/v.rast.stats not working
------------------------------+---------------------------------------------
  Reporter:  hellik           |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect           |      Status:  closed                   
  Priority:  major            |   Milestone:  6.4.0                    
 Component:  Vector           |     Version:  6.4.0 RCs                
Resolution:  fixed            |    Keywords:  v.db.addcol v.rast.stats 
  Platform:  MSWindows Vista  |         Cpu:  Unspecified              
------------------------------+---------------------------------------------
Changes (by hellik):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 Replying to [comment:4 neteler]:
 > Replying to [comment:2 hellik]:
 > > i tried this also on the mingw32-commandline in Grass6-devel, build
 from source rev. 36355 in the osgeo4w-tree:
 > >
 > > GRASS 6.5.svn (nc_spm_08):c:/Users/syringia > v.db.addcol
 mygeodetic_pts col="zval double precision"
 > > c:/OSGeo4W/apps/grass/grass-6.5.svn/scripts/v.db.addcol: eval: line 1:
 unexpected EOF while looking for matching `''
 > > c:/OSGeo4W/apps/grass/grass-6.5.svn/scripts/v.db.addcol: eval: line 2:
 syntax error: unexpected end of file
 >
 > Two ideas
 >
 > - http://lists.osgeo.org/pipermail/grass-dev/2009-March/042879.html
 >
 > - OSGeo "shell" package needs to be installed?
 >
 > Just guessing,
 > Markus

 build GRASS6.5 from source, svn 36355, in the osgeo4w-tree on Win Vista

 i started Grass 6.5 from the Osgeo4W-Shell
 after setting correct debug=3 and tried the above v.db.addcol-command.

 now the column seems to be added:

 db.columns --verbose table=mygeodetic_pts
 cat
 OBJECTID
 [..]
 SCALE
 ANGLE
 zvala <=
 zvalb <=

 and

 db.describe table=mygeodetic_pts
 [...]
 column:zvalb
 description:
 type:DOUBLE PRECISION
 len:20
 scale:6
 precision:18
 default:
 nullok:yes
 select:yes
 update:yes

 but i tried it again from the wx-gui-command-line, there is the first
 error again:

 v.db.addcol mygeodetic_pts col="zvalc double precision"
 Sorry <double> is not a valid option
 Sorry <precision"> is not a valid option
 [...]

 so adding the osgeo4w-shell would be maybe a part of the solution. but the
 wx-command-line should also work?

 all the best
 Helmut

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/488#comment:6>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list