| EPR-C-API |
#include <epr_api.h>
Data Fields | |
| EPR_Magic | magic |
| The magic number for this structure. | |
| EPR_EDataTypeId | data_type |
| The data type of the band's pixel values. | |
| ulong | elem_size |
| The size in byte of a single element (sample) of this raster's buffer. | |
| ulong | source_width |
| The width of the source . | |
| ulong | source_height |
| The height of the source. | |
| ulong | source_step_x |
| The sub-sampling for the across-track direction in pixel. | |
| ulong | source_step_y |
| The sub-sampling for the along-track direction in pixel. | |
| ulong | raster_width |
| The width of the raster in pixel. | |
| ulong | raster_height |
| The height of the raster in pixel. | |
| void * | buffer |
| The elements of this raster. | |
All 'size' parameter are in PIXEL.
The magic number for this structure.
IMPORTANT: This must always be the first member of this structure.
The data type of the band's pixel values.
All corresponding with EPR_DataTypeId types are possible
The size in byte of a single element (sample) of this raster's buffer.
The width of the source .
The height of the source.
The sub-sampling for the across-track direction in pixel.
The sub-sampling for the along-track direction in pixel.
The width of the raster in pixel.
raster_width = (source_width - 1) / source_step_x + 1
The height of the raster in pixel.
raster_height = (source_height - 1) / source_step_y + 1
| void* EPR_Raster::buffer |
The elements of this raster.
Its volume is raster_width * raster_height * sizeof(data_type) in bytes.