FortranGIS  Version2.5
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
hdsdataset to read
[in]bbxminminimum x georeferenced coordinate of the bounding box
[in]bbyminminimum y georeferenced coordinate of the bounding box
[in]bbxmaxmaximum x georeferenced coordinate of the bounding box
[in]bbymaxmaximum y georeferenced coordinate of the bounding box
[out]nxnumber of point in bounding box along x direction
[out]nynumber of point in bounding box along y direction
[out]offsetxoffset of bounding box start within dataset along x direction
[out]offsetyoffset of bounding box start within dataset along y direction
[out]xminminimum x georeferenced coordinate of the data read into pbuffer (center of first grid box)
[out]yminminimum y georeferenced coordinate of the data read into pbuffer (center of first grid box)
[out]xmaxmaximum x georeferenced coordinate of the data read into pbuffer (center of last grid box)
[out]ymaxmaximum y georeferenced coordinate of the data read into pbuffer (center of last grid box)

Definition at line 960 of file gdal.F90.