Derive requested XYZ bounds, map grid, and per-zoom tile ranges. More...
#include <xyz_tiles.h>

Public Member Functions | |
| XyzPlan (const MapConfig &config) | |
| Construct a bounded tile pyramid from the configured geographic bounds. | |
| XyzRange | range (int zoom) const |
| Return the aligned tile rectangle at a zoom within this plan. | |
| std::size_t | size () const |
| Count all requested tiles across the configured zoom pyramid. | |
| MapConfig | workingConfig (const MapConfig &original) const |
| Derive the padded UTM working-grid settings needed for resampling. | |
| void | checkOutput (const std::filesystem::path &root) const |
| Reject any existing tile or partial file in the output plan. | |
Data Fields | |
| XyzRange | base |
| int | minZoom = 19 |
| double | north = 0 |
| double | south = 0 |
| double | west = 0 |
| double | east = 0 |
Detailed Description
Derive requested XYZ bounds, map grid, and per-zoom tile ranges.
The tile rectangle is aligned in Web Mercator while the source mapper renders in UTM; a small working-grid pad contains the resampling taps. It is not a claim that imagery exists over every requested output pixel.
Definition at line 119 of file xyz_tiles.h.
Constructor & Destructor Documentation
◆ XyzPlan()
|
inlineexplicit |
Construct a bounded tile pyramid from the configured geographic bounds.
- Parameters
-
[in] config Validated XYZ settings and requested WGS-84 bounds.
- Exceptions
-
std::runtime_error If zooms, bounds, or requested tile count are invalid.
Definition at line 128 of file xyz_tiles.h.
Member Function Documentation
◆ checkOutput()
|
inline |
Reject any existing tile or partial file in the output plan.
- Parameters
-
[in] root XYZ output directory.
- Exceptions
-
std::runtime_error If any planned destination already exists.
Definition at line 189 of file xyz_tiles.h.
◆ range()
|
inline |
Return the aligned tile rectangle at a zoom within this plan.
Definition at line 159 of file xyz_tiles.h.
◆ size()
|
inline |
Count all requested tiles across the configured zoom pyramid.
Definition at line 165 of file xyz_tiles.h.
◆ workingConfig()
Derive the padded UTM working-grid settings needed for resampling.
Definition at line 171 of file xyz_tiles.h.
Field Documentation
◆ base
| XyzRange pangea_survey::XyzPlan::base |
Definition at line 120 of file xyz_tiles.h.
◆ east
| double pangea_survey::XyzPlan::east = 0 |
Definition at line 122 of file xyz_tiles.h.
◆ minZoom
| int pangea_survey::XyzPlan::minZoom = 19 |
Definition at line 121 of file xyz_tiles.h.
◆ north
| double pangea_survey::XyzPlan::north = 0 |
Definition at line 122 of file xyz_tiles.h.
◆ south
| double pangea_survey::XyzPlan::south = 0 |
Definition at line 122 of file xyz_tiles.h.
◆ west
| double pangea_survey::XyzPlan::west = 0 |
Definition at line 122 of file xyz_tiles.h.
The documentation for this struct was generated from the following file:
- modules/pangea/xyz_tiles.h