Opened 12 years ago
Closed 6 years ago
#1935 closed defect (invalid)
v.out.ogr removed export directory when dsn= is incorrectly specified.
Reported by: | cgsbob | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.0.7 |
Component: | Vector | Version: | svn-trunk |
Keywords: | v.out.ogr | Cc: | |
CPU: | Unspecified | Platform: | Linux |
Description
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@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@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)
Change History (5)
comment:1 by , 12 years ago
Keywords: | v.out.ogr added |
---|
comment:2 by , 9 years ago
Milestone: | 7.0.0 → 7.0.5 |
---|
comment:3 by , 8 years ago
Milestone: | 7.0.5 → 7.0.6 |
---|
comment:4 by , 7 years ago
Milestone: | 7.0.6 → 7.0.7 |
---|
comment:5 by , 6 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Unable to reproduce.