openModeller  Version 1.4.0
WcsProxyRaster Class Reference

#include <WcsProxyRaster.hh>

Inheritance diagram for WcsProxyRaster:
Collaboration diagram for WcsProxyRaster:

List of all members.

Public Member Functions

 WcsProxyRaster ()
 ~WcsProxyRaster ()
void createRaster (const std::string &str, int categ=0)
void createRaster (const std::string &str, const MapFormat &format)
int put (Coord x, Coord y, Scalar val)
int put (Coord x, Coord y)
void finish ()
int deleteRaster ()

Static Public Member Functions

static RasterCreateRasterCallback ()

Private Member Functions

 WcsProxyRaster (const WcsProxyRaster &)
WcsProxyRasteroperator= (const WcsProxyRaster &)

Detailed Description

Translates raster identifiers wcs>wcs url>wcs layer into local XML files compatible with the GDAL WCS format

Definition at line 48 of file WcsProxyRaster.hh.


Constructor & Destructor Documentation

RasterFactory needs an empty constructor.

Definition at line 59 of file WcsProxyRaster.hh.

Destructor

Definition at line 51 of file WcsProxyRaster.cpp.


Member Function Documentation

void WcsProxyRaster::createRaster ( const std::string &  str,
int  categ = 0 
) [virtual]

Open a raster (read only). Method needed by RasterFactory.

Parameters:
strWCS string pointing to the raster.
categif != 0 this is a categorical map (ie it can't be interpolated). Othewise this is a continuos map.

Needed by RasterFactory.

Reimplemented from GdalRaster.

void WcsProxyRaster::createRaster ( const std::string &  str,
const MapFormat format 
) [virtual]

Create a new raster for projections. If called will throw an exception since the WCS driver in GDAL does not support creation. Method needed by RasterFactory.

Parameters:
strWCS string pointing to the raster.
formatOutput format specification.

Reimplemented from GdalRaster.

RasterFactory calls this function to build a new Raster.

Definition at line 58 of file WcsProxyRaster.cpp.

Referenced by RasterFactory::instance().

int WcsProxyRaster::deleteRaster ( ) [virtual]

Method to delete a raster.

Returns:
1 if the raster was successfully deleted, 0 otherwise.

Reimplemented from GdalRaster.

Definition at line 347 of file WcsProxyRaster.cpp.

References Log::instance(), and Log::warn().

Here is the call graph for this function:

void WcsProxyRaster::finish ( ) [virtual]

Event that must be called to indicate when the projection is finished.

Reimplemented from GdalRaster.

Definition at line 337 of file WcsProxyRaster.cpp.

References Log::instance(), and Log::warn().

Here is the call graph for this function:

WcsProxyRaster& WcsProxyRaster::operator= ( const WcsProxyRaster ) [private]
int WcsProxyRaster::put ( Coord  x,
Coord  y,
Scalar  val 
) [virtual]

Put '*val' at the (x,y) coordinate. Returns 0 if (x,y) is out of range or the map is read only. supports only single band output files.

Reimplemented from GdalRaster.

Definition at line 317 of file WcsProxyRaster.cpp.

References Log::instance(), and Log::warn().

Here is the call graph for this function:

int WcsProxyRaster::put ( Coord  x,
Coord  y 
) [virtual]

Put 'no data val' at the (x,y) coordinate. Returns 0 if (x,y) is out of range or the map is read only. supports only single band output files.

Reimplemented from GdalRaster.

Definition at line 327 of file WcsProxyRaster.cpp.

References Log::instance(), and Log::warn().

Here is the call graph for this function:


The documentation for this class was generated from the following files: