FortranGIS
Version2.5
|
Simplified Fortran generic interface to the gdalrasterio C function. More...
Simplified Fortran generic interface to the gdalrasterio C function.
This interface manages calls to gdalrasterio for different Fortran data types. The size of the array provided determines also automatically the size of the area which is read or written from/to the raster band, so that the arguments ndsxsize, ndsysize, nbxsize, nbysize of the C interface are not needed and inferred from the shape of pbuffer, while npixelspace and nlinespace are set to default values. The remaining arguments have the same meaning as in the original gdalrasterio function which is still available to Fortran under the gdalrasterio
name.
INTEGER FUNCTION gdalrasterio_f(hband, erwflag, ndsxoff, ndsyoff, pbuffer)
TYPE(gdalrasterbandh),VALUE::hband | raster band object to read or write |
INTEGER(kind=c_int),INTENT(in)::erwflag | GF_Read or GF_Write |
INTEGER(kind=c_int),INTENT(in)::ndsxoff | offset from x origin |
INTEGER(kind=c_int),INTENT(in)::ndsyoff | offset from y origin |
INTEGER|REAL|DOUBLEPRECISION|COMPLEX,INTENT(inout)::pbuffer(,:) | data buffer, can be integer. real, or complex of different kinds |