|
subroutine gdal::gdaldatasetbbsize_f |
( |
type(gdaldataseth), value |
hds, |
|
|
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, |
|
|
integer, intent(out) |
nx, |
|
|
integer, intent(out) |
ny, |
|
|
integer, intent(out) |
offsetx, |
|
|
integer, intent(out) |
offsety, |
|
|
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 |
|
) |
| |
Determine the size of a dataset subset.
It determines the size and the coordinates of the portion of a dataset that lies within a requested bounding box, as it will be read by the gdaldatasetsimpleread_f and gdalrastersimpleread_f subroutines, without actually reading the data. A value of -1 for nx and ny indicates an error while accessing the dataset, while if either nx or ny are zero, it means that no dataset points fall within the bounding box.
WARNING: this is an experimental method, so the interface may change in the future, use with care!
- Parameters
-
| hds | dataset 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] | nx | number of point in bounding box along x direction |
[out] | ny | number of point in bounding box along y direction |
[out] | offsetx | offset of bounding box start within dataset along x direction |
[out] | offsety | offset of bounding box start within dataset along y direction |
[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 960 of file gdal.F90.
|