Loading...
Searching...
No Matches
map_exif.h
Go to the documentation of this file.
82 check(exif_document_ascii(&document_, EXIF_PRIMARY, EXIF_SOFTWARE, "Pangea / Sensoraia"), "Set map software");
91 << "{\"source\":\"pangea/survey\",\"pose\":\"derived_map_center\",\"mode\":" << jsonString(image.mode)
92 << ",\"projection\":" << jsonString(image.mode == "simple" ? "flat_plane_mosaic" : "fast_seam_multiband_mosaic")
101 json << "\"relief_corrected\":false,\"reference_plane_amsl_m\":" << image.referencePlane << ',';
103 json << "\"render_method\":" << jsonString(mosaicRenderMethod(image.seamMethod.empty() ? "graphcut" : image.seamMethod)) << ','
115 if (!sourceCompanion.empty()) json << ",\"source_metadata_file\":" << jsonString(sourceCompanion);
117 if (sourceCompanion.empty()) throw std::runtime_error("Large map source provenance requires a companion JSON");
128 for (std::size_t offset = 0; offset < sizeof(prefix); ++offset) comment[offset] = prefix[offset];
Serialize source-camera provenance and map-grid metadata for orthophotos.
Definition map_exif.h:36
Payload buildOrtho(const OrthoImage &image, const MapProjection &projection, const std::string &sourceCompanion={})
Build EXIF for an orthophoto and reference any external source list.
Definition map_exif.h:78
static std::string sourceMetadata(const std::vector< OrthoSource > &sources)
Encode each source image's optical, geographic, and timing provenance.
Definition map_exif.h:43
Forward and inverse WGS-84 Transverse Mercator conversion for one UTM zone.
Definition map_projection.h:46
std::pair< double, double > inverse(double east, double north) const
Convert UTM easting/northing back to WGS-84 latitude/longitude.
Definition map_projection.h:127
Build bounded EXIF payloads for simulator-generated source photos.
Definition photo_exif.h:91
Payload build(const PhotoPosition &position, int width, int height, const std::optional< PhotoCamera > &camera={})
Construct EXIF from validated photo position and optional camera evidence.
Definition photo_exif.h:194
std::array< unsigned char, EXIF_MAX_PAYLOAD > payload_
Definition photo_exif.h:94
static std::string jsonString(const std::string &text)
Escape a string as a JSON string literal.
Definition photo_exif.h:456
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.
Definition photo_exif.h:127
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.
Definition photo_exif.h:112
static void check(int result, const char *operation)
Convert a C EXIF status into the mapper's error path.
Definition photo_exif.h:100
int exif_serialize(const struct exif_document *document, unsigned char *payload, size_t capacity, size_t *size)
Serialize a document into one complete EXIF APP1 payload.
Definition exifite.c:736
#define EXIF_MAX_PAYLOAD
APP1 payload ceiling: the JPEG length includes its own two bytes.
Definition exifite.h:51
int exif_document_ascii(struct exif_document *document, enum exif_directory directory, uint16_t tag, const char *text)
Replace an ASCII field, including its terminating NUL byte.
Definition exifite.c:543
Definition camera_optics.h:32
bool mosaicMode(const std::string &mode)
Return whether a supported processing mode uses the Great mosaic.
Definition map_config.h:80
std::string mosaicRenderMethod(const std::string &method)
Give a stable descriptive name to a Great seam-and-blend renderer.
Definition map_config.h:108
Describe the validated photo set and render projected map windows.
Encode simulated-camera pose, optics, and uncertainty into EXIF.
Rendered BGRA map plus coverage, source list, and method provenance.
Definition ortho_map.h:78
Borrowed serialized EXIF bytes held in this object's workspace.
Definition photo_exif.h:180