Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
pangea_survey::XyzPlan Struct Reference

Derive requested XYZ bounds, map grid, and per-zoom tile ranges. More...

#include <xyz_tiles.h>

Collaboration diagram for pangea_survey::XyzPlan:

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()

pangea_survey::XyzPlan::XyzPlan ( const MapConfig & config)
inlineexplicit

Construct a bounded tile pyramid from the configured geographic bounds.

Parameters
[in]configValidated XYZ settings and requested WGS-84 bounds.
Exceptions
std::runtime_errorIf zooms, bounds, or requested tile count are invalid.

Definition at line 128 of file xyz_tiles.h.

Member Function Documentation

◆ checkOutput()

void pangea_survey::XyzPlan::checkOutput ( const std::filesystem::path & root) const
inline

Reject any existing tile or partial file in the output plan.

Parameters
[in]rootXYZ output directory.
Exceptions
std::runtime_errorIf any planned destination already exists.

Definition at line 189 of file xyz_tiles.h.

◆ range()

XyzRange pangea_survey::XyzPlan::range ( int zoom) const
inline

Return the aligned tile rectangle at a zoom within this plan.

Definition at line 159 of file xyz_tiles.h.

◆ size()

std::size_t pangea_survey::XyzPlan::size ( ) const
inline

Count all requested tiles across the configured zoom pyramid.

Definition at line 165 of file xyz_tiles.h.

◆ workingConfig()

MapConfig pangea_survey::XyzPlan::workingConfig ( const MapConfig & original) const
inline

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: