Nuxeo Marketplace

Find Nuxeo packages for your application

Nuxeo Labs Decimal GPS

By Hyland

This plug-in uses exiftool with the option -n to extract GPS metadata in decimal format. This makes it easier to deal with positive and negative direction, and easier to integrate with services like Google Maps.

Usage

The plugin includes a custom operation, Document.GetGPSData, that accepts params that correspond to the EXIF tags GPSLongitute, GPSLatitude, and GPSPosition (which is a composite tag).

The values of the parameters are XPATH fields of the input document that will get these values. For example, say input document has the gps (custom) schema with 3 fields, gps:DecimalLatitude, gps:DecimalLongitude and gps:DecimalPosition. Calling the operation:

. . .
input = Document.GetGPSData(
  input, {
    'latitudeField': 'gps:DecimalLatitude',
    'longitudeField': 'gps:DecimalLongitude',
    'positionField': 'gps:DecimalPosition'
  }
)