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::MapExif Class Reference

Serialize source-camera provenance and map-grid metadata for orthophotos. More...

#include <map_exif.h>

Inheritance diagram for pangea_survey::MapExif:
Collaboration diagram for pangea_survey::MapExif:

Public Member Functions

Payload buildOrtho (const OrthoImage &image, const MapProjection &projection, const std::string &sourceCompanion={})
 Build EXIF for an orthophoto and reference any external source list.
Public Member Functions inherited from pangea_survey::PhotoExif
Payload build (const PhotoPosition &position, int width, int height, const std::optional< PhotoCamera > &camera={})
 Construct EXIF from validated photo position and optional camera evidence.

Static Public Member Functions

static std::string sourceMetadata (const std::vector< OrthoSource > &sources)
 Encode each source image's optical, geographic, and timing provenance.
Static Public Member Functions inherited from pangea_survey::PhotoExif
static std::string jsonString (const std::string &text)
 Escape a string as a JSON string literal.

Additional Inherited Members

Protected Member Functions inherited from pangea_survey::PhotoExif
unsigned char * reserve (exif_directory directory, std::uint16_t tag, exif_format format, std::uint32_t count)
 Allocate one field in the bounded EXIF document.
void coordinate (double degrees, std::uint16_t referenceTag, std::uint16_t valueTag, char positive, char negative)
 Encode a validated geographic coordinate as EXIF GPS rationals.
void captureTime (const PhotoCamera &camera)
 Write simulator-observed UTC into consistent EXIF and GPS fields.
Static Protected Member Functions inherited from pangea_survey::PhotoExif
static void check (int result, const char *operation)
 Convert a C EXIF status into the mapper's error path.
Protected Attributes inherited from pangea_survey::PhotoExif
exif_document document_ {}
std::array< unsigned char, EXIF_MAX_PAYLOAD > payload_ {}

Detailed Description

Serialize source-camera provenance and map-grid metadata for orthophotos.

This is derived-map metadata: it does not claim exposure-time pose synchronization, a measured lens calibration, or relief-corrected geometry.

Definition at line 36 of file map_exif.h.

Member Function Documentation

◆ buildOrtho()

Payload pangea_survey::MapExif::buildOrtho ( const OrthoImage & image,
const MapProjection & projection,
const std::string & sourceCompanion = {} )
inline

Build EXIF for an orthophoto and reference any external source list.

Parameters
[in]imageRendered pixels, map grid, coverage classes, and sources.
[in]projectionUTM projection used to derive the map-centre location.
[in]sourceCompanionOptional companion JSON filename for large provenance.
Returns
Serialized EXIF payload borrowed from the inherited workspace.
Exceptions
std::runtime_errorIf provenance cannot fit or map metadata is invalid.

Definition at line 78 of file map_exif.h.

◆ sourceMetadata()

std::string pangea_survey::MapExif::sourceMetadata ( const std::vector< OrthoSource > & sources)
inlinestatic

Encode each source image's optical, geographic, and timing provenance.

Parameters
[in]sourcesSources contributing to one rendered map.
Returns
JSON array suitable for an EXIF comment or companion file.

Definition at line 43 of file map_exif.h.


The documentation for this class was generated from the following file: