Exterior Orientation from Metadata#
Main API Function
|
Extract exterior orientation (position + rotation + CRS) from metadata tags. |
Helper
|
- weitsicht.metadata.eor_from_meta.eor_from_meta(tags: MetaTagAll, crs: CRS | None = None, vertical_ref: str = 'ellipsoidal', height_rel: float = 0.0, to_utm: bool = False) EORFromMetaResultSuccess | ResultFailure[MetadataIssue][source]#
Extract exterior orientation (position + rotation + CRS) from metadata tags.
If
to_utmisTruethe returned position is expressed in a local projected coordinate system derived from the input CRS (typically WGS84) by converting to WGS84-UTM with EGM2008 heights. The orientation is returned in the corresponding UTM grid ENU frame (i.e. true ENU rotated by meridian convergence).If
to_utmisFalsethe pose is returned in WGS84 ECEF (EPSG:4978).If XMP tags
HorizCS/VertCSare missing, defaults to WGS84 (EPSG:4979) with ellipsoidal heights.- Parameters:
tags (MetaTagAll) – Grouped metadata values (e.g. from
MetaTagsBase.get_all()).crs (CRS | None) – Optional override CRS for interpreting the position tags, defaults to
None.vertical_ref (str) – Vertical reference mode:
ellipsoidal,orthometric, orrelative.relativeusesRelativeAltitude+height_rel.height_rel (float) – Reference height (meters) for
vertical_ref='relative', defaults to0.0.to_utm (bool) – Whether to output the position in WGS84-UTM (EGM2008) instead of ECEF, defaults to
False.
- Returns:
Successful EOR result or a failure result.
- Return type: