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