[GRASS-dev] [GRASS GIS] #1935: v.out.ogr removed export directory when dsn= is incorrectly specified.

GRASS GIS trac at osgeo.org
Wed Apr 17 15:07:50 PDT 2013


#1935: v.out.ogr removed export directory when dsn= is incorrectly specified.
-------------------------+--------------------------------------------------
 Reporter:  cgsbob       |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  Vector       |     Version:  svn-trunk                
 Keywords:               |    Platform:  Linux                    
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 I can't believe I specified a dsn without escaping the space character.
 So, when I saw the error below, I figured that the dsn caused this
 problem. So, I tested my theory by setting the dsn to /tmp/hydro.shp
 without any errors.  When I went to see if any files were written in
 "/media/STORE N GO/Sac", I discovered that this directory was gone!
 {{{
 (Wed Apr 17 11:36:43 2013)
 v.out.ogr -c -e --verbose input=sac_course at Data dsn=/media/STORE N
 GO/Sac/hydro.shp format=ESRI_Shapefile
 Exporting 118696 features...
 ERROR 1: Error in psSHP->sHooks.Fwrite() while writing
 object to .shp file.
 ERROR 1: Error in psSHP->sHooks.Fwrite() while writing
 object to .shp file.
 ERROR 1: Error in psSHP->sHooks.Fwrite() while writing
 object to .shp file.
 ERROR 1: Error in psSHP->sHooks.Fwrite() while writing
 object to .shp file.
 ERROR 1: Error in psSHP->sHooks.Fwrite() while writing
 object to .shp file.
 ERROR 1: Error in psSHP->sHooks.Fwrite() while writing
 object to .shp file.
 ERROR 1: Error in psSHP->sHooks.Fwrite() while writing
 object to .shp file.
 ERROR 1: Error in psSHP->sHooks.Fwrite() while writing
 object to .shp file.
 ERROR 1: Error in psSHP->sHooks.Fwrite() while writing
 object to .shp file.
 ERROR 1: Error in psSHP->sHooks.Fwrite() while writing
 object to .shp file.
 ERROR 1: Error in psSHP->sHooks.Fwrite() while writing
 object to .shp file.
 ERROR 1: Error in psSHP->sHooks.Fwrite() while writing
 object to .shp file.
 ERROR 1: Error in psSHP->sHooks.Fwrite() while writing
 object to .shp file.
 ERROR 1: Failure writing DBF record 1555.
 ERROR 1: Error in psSHP->sHooks.Fwrite() while writing
 object to .shp file.
 }}}
 '''I hit CTRL-C'''
 {{{
 Please note that the data are left in inconsistent state and may be
 corrupted
 (Wed Apr 17 11:37:41 2013) Command aborted (57 sec)
 }}}
 Export vector to /tmp works fine
 {{{
 (Wed Apr 17 11:38:05 2013)
 v.out.ogr -c -e --verbose input=sac_course at Data dsn=/tmp/hydro.shp
 format=ESRI_Shapefile
 Exporting 118696 features...
 v.out.ogr complete. 118696 features written to <sac_course>
 (ESRI_Shapefile).
 (Wed Apr 17 11:39:05 2013) Command finished (59 sec)
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1935>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list