00001 /*************************************************************************** 00002 qgsrasterdataprovider.cpp - DataProvider Interface for raster layers 00003 -------------------------------------- 00004 Date : Mar 11, 2005 00005 Copyright : (C) 2005 by Brendan Morley 00006 email : morb at ozemail dot com dot au 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 /* $Id$ */ 00018 00019 #include "qgsrasterdataprovider.h" 00020 #include "qgslogger.h" 00021 00022 #include <QMap> 00023 00024 QgsRasterDataProvider::QgsRasterDataProvider(): mDpi( -1 ) 00025 { 00026 } 00027 00028 QgsRasterDataProvider::QgsRasterDataProvider( QString const & uri ) 00029 : QgsDataProvider( uri ) 00030 , mDpi( -1 ) 00031 { 00032 } 00033 00034 QString QgsRasterDataProvider::capabilitiesString() const 00035 { 00036 QStringList abilitiesList; 00037 00038 int abilities = capabilities(); 00039 00040 if ( abilities & QgsRasterDataProvider::Identify ) 00041 { 00042 abilitiesList += "Identify"; 00043 QgsDebugMsg( "Identify" ); 00044 } 00045 00046 return abilitiesList.join( ", " ); 00047 } 00048 00049 bool QgsRasterDataProvider::identify( const QgsPoint& thePoint, QMap<QString, QString>& theResults ) 00050 { 00051 theResults.clear(); 00052 return false; 00053 } 00054 00055 QString QgsRasterDataProvider::lastErrorFormat() 00056 { 00057 return "text/plain"; 00058 } 00059 00060 // ENDS