30 #include <QtCore/QDir> 
   31 #include <QtCore/QFileInfo> 
   38   QFileInfo fileInfo(path);
 
   40   if(!fileInfo.isFile())
 
   43   if(fileInfo.suffix().toLower() == 
"shp")
 
   53   QFileInfo fileInfo(path);
 
   56   QString fileName = fileInfo.fileName();
 
   59   QDir dir(fileInfo.absolutePath());
 
   62   QString qixFile = fileName;
 
   63   qixFile.replace(
".shp", 
".qix");
 
   64   if(dir.exists(qixFile))
 
   68   QString sbnFile = fileName;
 
   69   sbnFile.replace(
".shp", 
".sbn");
 
   70   if(dir.exists(sbnFile))
 
bool IsShapeFile(const QString &path)
 
Utility functions for the OGR data source widget plugin. 
 
bool HasShapeFileSpatialIndex(const QString &path)