Conversion functions

 

DSpGMSingleBand: DSpGMToRadian & DSpGMToDegrees

In these operations every pixel value in a raster band is converted from radians to degrees, or vice versa. There is no check on the magnitude of the values, so the result is not guaranteed to fall within a specific range. The raster band is overwritten with the result of the operation.

If you want to preserve the original raster band, you should make a copy of the band first.

 

Declaration

High-level declaration:

procedure DSpGMToRadian(const r: TDSpRaster; const band, token: integer);
procedure DSpGMToDegrees(const r: TDSpRaster; const band, token: integer);

Parameter Description
r A valid raster object. It must be opened for write access.
band The identifier of the raster band. The band must exist in the raster, and it can be of any type. The data type can be any 32-bit or 64-bit data type.
token The access token for the raster. The token has to be generated for write access.


Go to SourceForge
Last modified: 6 January 2005. Page maintained by pvanlaake