~ubuntu-branches/debian/sid/gdal/sid

« back to all changes in this revision

Viewing changes to ogr/ogrsf_frmts/shape/ogrshapedriver.cpp

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-05-07 15:04:42 UTC
  • mfrom: (5.5.16 experimental)
  • Revision ID: package-import@ubuntu.com-20120507150442-2eks97loeh6rq005
Tags: 1.9.0-1
* Ready for sid, starting transition.
* All symfiles updated to latest builds.
* Added dh_numpy call in debian/rules to depend on numpy ABI.
* Policy bumped to 3.9.3, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/******************************************************************************
2
 
 * $Id: ogrshapedriver.cpp 15755 2008-11-17 23:13:50Z rouault $
 
2
 * $Id: ogrshapedriver.cpp 19457 2010-04-19 18:53:53Z rouault $
3
3
 *
4
4
 * Project:  OpenGIS Simple Features Reference Implementation
5
5
 * Purpose:  Implements OGRShapeDriver class.
31
31
#include "cpl_conv.h"
32
32
#include "cpl_string.h"
33
33
 
34
 
CPL_CVSID("$Id: ogrshapedriver.cpp 15755 2008-11-17 23:13:50Z rouault $");
 
34
CPL_CVSID("$Id: ogrshapedriver.cpp 19457 2010-04-19 18:53:53Z rouault $");
35
35
 
36
36
/************************************************************************/
37
37
/*                          ~OGRShapeDriver()                           */
153
153
 
154
154
{
155
155
    int iExt;
156
 
    VSIStatBuf sStatBuf;
 
156
    VSIStatBufL sStatBuf;
157
157
    static const char *apszExtensions[] = 
158
158
        { "shp", "shx", "dbf", "sbn", "sbx", "prj", "idm", "ind", 
159
159
          "qix", NULL };
160
160
 
161
 
    if( VSIStat( pszDataSource, &sStatBuf ) != 0 )
 
161
    if( VSIStatL( pszDataSource, &sStatBuf ) != 0 )
162
162
    {
163
163
        CPLError( CE_Failure, CPLE_AppDefined,
164
164
                  "%s does not appear to be a file or directory.",
176
176
        {
177
177
            const char *pszFile = CPLResetExtension(pszDataSource,
178
178
                                                    apszExtensions[iExt] );
179
 
            if( VSIStat( pszFile, &sStatBuf ) == 0 )
 
179
            if( VSIStatL( pszFile, &sStatBuf ) == 0 )
180
180
                VSIUnlink( pszFile );
181
181
        }
182
182
    }