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
xyz_export.h File Reference

Resample the UTM source mosaic into complete 256-pixel XYZ tiles. More...

#include "xyz_tiles.h"
#include "parallel_rows.h"
Include dependency graph for xyz_export.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pangea_survey::XyzPixels
 Colour and confidence planes for one aligned XYZ working batch. More...

Namespaces

namespace  pangea_survey

Functions

bool pangea_survey::xyzCompleteCoverage (std::size_t valid)
 Require every one of the tile's 256 x 256 output pixels to be supported.
XyzPixels pangea_survey::renderXyzPixels (Orthorectifier &processor, const MapConfig &config, const OrthoLayout &layout, int zoom, std::uint64_t originX, std::uint64_t originY, int width, int height, const std::function< bool()> &stopped)
 Resample an orthomosaic window onto one Web-Mercator pixel grid.
XyzPixels pangea_survey::xyzOverview (const XyzPixels &input, unsigned workers, const std::function< bool()> &stopped)
 Build one lower-zoom level from aligned 2 x 2 child pixels.
static pangea_survey::XyzPixels xyzBatch (pangea_survey::Orthorectifier &processor, const pangea_survey::MapConfig &working, const pangea_survey::OrthoLayout &layout, int zoom, std::uint64_t x, std::uint64_t y, int width, int height)
 Render or reuse one identity-checked XYZ batch for low-memory resume.
static int exportXyzTiles (const pangea_survey::MapConfig &config, const fs::path &csv, const fs::path &workDirectory, bool diagnostic=false)
 Render and publish the planned XYZ pyramid, optionally as diagnostics.

Detailed Description

Resample the UTM source mosaic into complete 256-pixel XYZ tiles.

Tile pixels are transformed through geographic coordinates instead of assuming UTM and Web Mercator share a grid. Every interpolation tap with a nonzero weight must have source support; publishing partial or fabricated pixels would break opaque-tile compatibility and misstate coverage.

Definition in file xyz_export.h.

Function Documentation

◆ exportXyzTiles()

int exportXyzTiles ( const pangea_survey::MapConfig & config,
const fs::path & csv,
const fs::path & workDirectory,
bool diagnostic = false )
static

Render and publish the planned XYZ pyramid, optionally as diagnostics.

Parameters
[in]configValidated XYZ settings, coverage policy, and output root.
[in]csvFixed-session source manifest.
[in]workDirectoryPrivate report/checkpoint directory for this run.
[in]diagnosticIf true, save inspection images but leave completion false.
Returns
Zero only after the report and all required tiles are finalized.
Exceptions
std::runtime_errorOn cancellation, incomplete coverage, write failure, or mismatched checkpoint content.

Definition at line 230 of file xyz_export.h.

◆ xyzBatch()

pangea_survey::XyzPixels xyzBatch ( pangea_survey::Orthorectifier & processor,
const pangea_survey::MapConfig & working,
const pangea_survey::OrthoLayout & layout,
int zoom,
std::uint64_t x,
std::uint64_t y,
int width,
int height )
static

Render or reuse one identity-checked XYZ batch for low-memory resume.

Parameters
[in]processorPrepared orthorectifier.
[in]workingWorking-grid configuration and checkpoint directory.
[in]layoutProjected working-grid bounds.
[in]zoomBase XYZ zoom.
[in]xGlobal XYZ pixel origin.
[in]yGlobal XYZ pixel origin.
[in]widthBatch width in pixels.
[in]heightBatch height in pixels.
Returns
Owned BGRA and confidence planes.
Exceptions
std::runtime_errorIf a saved batch has mismatched dimensions/hash or rendering fails.

Definition at line 182 of file xyz_export.h.