src/mod_retile.cpp
static void tile_to_bbox(const TiledRaster &raster, const sz5 *tile, bbox_t &bb) {
    double rx = raster.rsets[tile->l].rx;
    double ry = raster.rsets[tile->l].ry;

    // Compute the top left
    bb.xmin = raster.bbox.xmin + tile->x * rx * raster.pagesize.x;
    bb.ymax = raster.bbox.ymax - tile->y * ry * raster.pagesize.y;
    // Adjust for the bottom right
    bb.xmax = bb.xmin + rx * raster.pagesize.x;
    bb.ymin = bb.ymax - ry * raster.pagesize.y;
}
// From a tile location, generate a bounding box of a raster
From a tile location, generate a bounding box of a raster
From a tile location generate a bounding box of a raster
static void tile_to_bbox(const TiledRaster &raster, const sz5 *tile, bbox_t &bb) {
    double rx = raster.rsets[tile->l].rx;
    double ry = raster.rsets[tile->l].ry;
    bb.xmin = raster.bbox.xmin + tile->x * rx * raster.pagesize.x;
    bb.ymax = raster.bbox.ymax - tile->y * ry * raster.pagesize.y;
    bb.xmax = bb.xmin + rx * raster.pagesize.x;
    bb.ymin = bb.ymax - ry * raster.pagesize.y;
}
static void tile_to_bbox ( const TiledRaster & raster , const sz5 * tile , bbox_t & bb ) { double rx = raster . rsets [ tile -> l ] . rx ; double ry = raster . rsets [ tile -> l ] . ry ; bb . xmin = raster . bbox . xmin + tile -> x * rx * raster . pagesize . x ; bb . ymax = raster . bbox . ymax - tile -> y * ry * raster . pagesize . y ; bb . xmax = bb . xmin + rx * raster . pagesize . x ; bb . ymin = bb . ymax - ry * raster . pagesize . y ; }
From a tile location, generate a bounding box of a raster
From a tile location generate a bounding box of a raster
// Compute the top left // Adjust for the bottom right