|
subroutine gdal::gdalrastersimpleread_f |
( |
type(gdalrasterbandh), value |
hband, |
|
|
real(kind=c_double), intent(in) |
bbxmin, |
|
|
real(kind=c_double), intent(in) |
bbymin, |
|
|
real(kind=c_double), intent(in) |
bbxmax, |
|
|
real(kind=c_double), intent(in) |
bbymax, |
|
|
real(kind=c_float), dimension(:,:), intent(out), allocatable |
pbuffer, |
|
|
real(kind=c_double), intent(out) |
xmin, |
|
|
real(kind=c_double), intent(out) |
ymin, |
|
|
real(kind=c_double), intent(out) |
xmax, |
|
|
real(kind=c_double), intent(out) |
ymax |
|
) |
| |
Even more simplified method for importing data from a raster band within a bounding box specified in georeferenced coordinates.
This method imports a single raster band of a dataset hband keeping the data included in a rectangular bounding box specified in terms of georeferenced coordinates and clipped to the dataset domain extension. Datasets with a rotational geotransform are not supported. The result is stored in a 2-d buffer that must be declared as ALLOCATABLE and is allocated inside the method (f2003 feature). The actual bounding box of data obtained, in terms of georeferenced coordinates of centers of first and last grid boxes, and the grid step are returned in output. If an error occurs while accessing the dataset, the buffer is not allocated (check with the ALLOCATED() intrinsic function), while if the bounding box lies outside of the dataset domain, one or more dimensions are allocated to zero size (check with the SIZE() intrinsic function). The data is kept in the dataset resolution, no interpolation is done.
WARNING: this is an experimental method, so the interface may change in the future, use with care!
- Parameters
-
| hband | raster band to read |
[in] | bbxmin | minimum x georeferenced coordinate of the bounding box |
[in] | bbymin | minimum y georeferenced coordinate of the bounding box |
[in] | bbxmax | maximum x georeferenced coordinate of the bounding box |
[in] | bbymax | maximum y georeferenced coordinate of the bounding box |
[out] | pbuffer | buffer containing output data, allocated by the present method, its previous contents, if any, is lost |
[out] | xmin | minimum x georeferenced coordinate of the data read into pbuffer (center of first grid box) |
[out] | ymin | minimum y georeferenced coordinate of the data read into pbuffer (center of first grid box) |
[out] | xmax | maximum x georeferenced coordinate of the data read into pbuffer (center of last grid box) |
[out] | ymax | maximum y georeferenced coordinate of the data read into pbuffer (center of last grid box) |
Definition at line 1106 of file gdal.F90.
|