FortranGIS  Version2.5
List of all members
gdalrasterio_f Interface Reference

Simplified Fortran generic interface to the gdalrasterio C function. More...

Detailed Description

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)

Parameters
TYPE(gdalrasterbandh),VALUE::hbandraster band object to read or write
INTEGER(kind=c_int),INTENT(in)::erwflagGF_Read or GF_Write
INTEGER(kind=c_int),INTENT(in)::ndsxoffoffset from x origin
INTEGER(kind=c_int),INTENT(in)::ndsyoffoffset from y origin
INTEGER|REAL|DOUBLEPRECISION|COMPLEX,INTENT(inout)::pbuffer(,:)data buffer, can be integer. real, or complex of different kinds

Definition at line 372 of file gdal.F90.