naturtag.metadata.gps module¶
Utilities for converting GPS coordinates to/from EXIF and XMP image metadata
- naturtag.metadata.gps.convert_dwc_coords(metadata)¶
Get coordinates from XMP-formatted DwC, if available
- Return type:
Optional[Tuple[float,float]]
- naturtag.metadata.gps.convert_exif_coords(metadata)¶
Translate Exif.GPSInfo into decimal degrees, if available
- Return type:
Optional[Tuple[float,float]]
- naturtag.metadata.gps.convert_xmp_coords(metadata)¶
Translate Xmp.exif.GPS into decimal degrees, if available
- Return type:
Optional[Tuple[float,float]]
- naturtag.metadata.gps.to_exif_coords(coords, accuracy=None)¶
Convert decimal degrees to Exif.GPSInfo coordinates (DMS)
- Return type:
dict[str,str]
- naturtag.metadata.gps.to_xmp_coords(coords, accuracy=None)¶
Convert decimal degrees to XMP-formatted GPS coordinates (DDM)
- Return type:
dict[str,str]