FortranGIS  Version2.5
List of all members
gdaldatasetrasterio_f Interface Reference

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

Detailed Description

Simplified Fortran generic interface to the gdaldatasetrasterio C function.

This interface manages calls to gdaldatasetrasterio for different Fortran data types. The size of the array provided determines also automatically the size of the area and the number of raster bands which are read or written from/to the dataset, so that the arguments ndsxsize, ndsysize, nbxsize, nbysize, nbandcount of the C interface are not needed and inferred from the shape of pbuffer, while panbandcount, npixelspace, nlinespace and nbandspace are set to default values, thus the number of requested raster bands is read starting from the first. The remaining arguments have the same meaning as in the original gdaldatasetrasterio function which is still available to Fortran under the gdaldatasetrasterio name.

INTEGER FUNCTION gdaldatasetrasterio_f(hds, erwflag, ndsxoff, ndsyoff, pbuffer)

Parameters
TYPE(gdadataseth),VALUE::hdsdataset 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 343 of file gdal.F90.