openModeller
Version 1.4.0
|
00001 00027 #ifndef _WCSPROXY_RASTERHH_ 00028 #define _WCSPROXY_RASTERHH_ 00029 00030 #include <openmodeller/env_io/Raster.hh> 00031 #include <openmodeller/env_io/GdalRaster.hh> 00032 00033 #include <string> 00034 00035 #define OM_WCS_PROXY_SUBDIR "wcs" 00036 00037 class GDALDataset; 00038 class MapFormat; 00039 00040 /****************************************************************/ 00041 /*********************** WCS proxy Raster ***********************/ 00042 00048 class dllexp WcsProxyRaster : public GdalRaster 00049 { 00050 public: 00054 static Raster* CreateRasterCallback(); 00055 00059 WcsProxyRaster():GdalRaster() {}; 00060 00064 ~WcsProxyRaster(); 00065 00073 void createRaster( const std::string& str, int categ = 0 ); 00074 00082 #ifdef MPI_FOUND 00083 void createRaster( const std::string& output_file, const std::string& file, const MapFormat& format ); 00084 #else 00085 void createRaster( const std::string& str, const MapFormat& format ); 00086 #endif 00087 00093 int put( Coord x, Coord y, Scalar val ); 00094 00100 int put( Coord x, Coord y ); 00101 00105 void finish(); 00106 00110 int deleteRaster(); 00111 00112 private: 00113 00114 // Disable copying. 00115 WcsProxyRaster( const WcsProxyRaster& ); 00116 WcsProxyRaster& operator=( const WcsProxyRaster& ); 00117 }; 00118 00119 #endif 00120