FortranGIS
Version2.5
|
Simplified Fortran generic interface to the gdaldatasetrasterio C function. More...
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)
TYPE(gdadataseth),VALUE::hds | dataset 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 |