openModeller  Version 1.5.0
WcsProxyRaster.hh
Go to the documentation of this file.
1 
27 #ifndef _WCSPROXY_RASTERHH_
28 #define _WCSPROXY_RASTERHH_
29 
32 
33 #include <string>
34 
35 #define OM_WCS_PROXY_SUBDIR "wcs"
36 
37 class GDALDataset;
38 class MapFormat;
39 
40 /*********************************************************/
41 /*********************** Functions ***********************/
42 
45 dllexp bool isFromRejectedSource( const std::string& str );
46 
47 /****************************************************************/
48 /*********************** WCS proxy Raster ***********************/
49 
55 class dllexp WcsProxyRaster : public GdalRaster
56 {
57 public:
61  static Raster* CreateRasterCallback();
62 
67 
71  ~WcsProxyRaster();
72 
80  void createRaster( const std::string& str, int categ = 0 );
81 
89  #ifdef MPI_FOUND
90  void createRaster( const std::string& output_file, const std::string& file, const MapFormat& format );
91  #else
92  void createRaster( const std::string& str, const MapFormat& format );
93  #endif
94 
100  int put( Coord x, Coord y, Scalar val );
101 
107  int put( Coord x, Coord y );
108 
112  void finish();
113 
117  int deleteRaster();
118 
119 private:
120 
121  // Disable copying.
122  WcsProxyRaster( const WcsProxyRaster& );
124 };
125 
126 #endif
127 
void finish()
Definition: GdalRaster.cpp:873
double Scalar
Type of map values.
Definition: om_defs.hh:39
A common interface to rasters.
Definition: Raster.hh:44
GdalRaster & operator=(const GdalRaster &)
int deleteRaster()
Definition: GdalRaster.cpp:931
void createRaster(const std::string &file, int categ=0)
int put(Coord x, Coord y, Scalar val)
Definition: GdalRaster.cpp:710
dllexp bool isFromRejectedSource(const std::string &str)
double Coord
Type of map coordinates.
Definition: om_defs.hh:38