Changeset 11008
- Timestamp:
- 03/18/07 12:56:07 (2 years ago)
- Files:
-
- trunk/gdal/ogr/ogrsf_frmts/shape/ogrshapelayer.cpp (modified) (4 diffs)
- trunk/gdal/ogr/ogrsf_frmts/shape/shpopen.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/gdal/ogr/ogrsf_frmts/shape/ogrshapelayer.cpp
r10976 r11008 1010 1010 if( VSIRename( oTempFile, CPLResetExtension( pszFullName, "dbf" ) ) != 0 ) 1011 1011 { 1012 CPLDebug( "Shape", "Can not rename DBF file: %s", strerror( errno ) );1012 CPLDebug( "Shape", "Can not rename DBF file: %s", VSIStrerror( errno ) ); 1013 1013 return OGRERR_FAILURE; 1014 1014 } … … 1076 1076 if( VSIRename( oTempFile, CPLResetExtension( pszFullName, "shp" ) ) != 0 ) 1077 1077 { 1078 CPLDebug( "Shape", "Can not rename SHP file: %s", strerror( errno ) );1078 CPLDebug( "Shape", "Can not rename SHP file: %s", VSIStrerror( errno ) ); 1079 1079 return OGRERR_FAILURE; 1080 1080 } … … 1083 1083 if( VSIRename( oTempFile, CPLResetExtension( pszFullName, "shx" ) ) != 0 ) 1084 1084 { 1085 CPLDebug( "Shape", "Can not rename SHX file: %s", strerror( errno ) );1085 CPLDebug( "Shape", "Can not rename SHX file: %s", VSIStrerror( errno ) ); 1086 1086 return OGRERR_FAILURE; 1087 1087 } … … 1092 1092 /* */ 1093 1093 /* We do not need to reimplement OGRShapeDataSource::OpenFile() here */ 1094 /* with the fully featured error checking. 1094 /* with the fully featured error checking. */ 1095 1095 /* If all operations above succeeded, then all necessery files are */ 1096 /* in the right place and accessible. 1096 /* in the right place and accessible. */ 1097 1097 /* -------------------------------------------------------------------- */ 1098 1098 CPLAssert( NULL == hSHP ); trunk/gdal/ogr/ogrsf_frmts/shape/shpopen.c
r10975 r11008 206 206 #include <string.h> 207 207 #include <stdio.h> 208 #ifdef USE_CPL 209 #include <cpl_vsi.h> 210 #endif 208 211 209 212 SHP_CVSID("$Id: shpopen.c,v 1.51 2006/09/04 15:24:01 fwarmerdam Exp $") … … 344 347 #ifdef USE_CPL 345 348 CPLError( CE_Failure, CPLE_OpenFailed, 346 "Failure writing .shp header (%s)", strerror( errno ) );349 "Failure writing .shp header (%s)", VSIStrerror( errno ) ); 347 350 #endif 348 351 return; … … 361 364 #ifdef USE_CPL 362 365 CPLError( CE_Failure, CPLE_OpenFailed, 363 "Failure writing .shx header (%s)", strerror( errno ) );366 "Failure writing .shx header (%s)", VSIStrerror( errno ) ); 364 367 #endif 365 368 return; … … 384 387 #ifdef USE_CPL 385 388 CPLError( CE_Failure, CPLE_OpenFailed, 386 "Failure writing .shx contents (%s)", strerror( errno ) );389 "Failure writing .shx contents (%s)", VSIStrerror( errno ) ); 387 390 #endif 388 391 }
