Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Added support for EXIF lat/lng #16

Merged
merged 3 commits into from
Jan 18, 2015
Merged

Added support for EXIF lat/lng #16

merged 3 commits into from
Jan 18, 2015

Conversation

cait08
Copy link
Contributor

@cait08 cait08 commented Dec 19, 2014

I needed support for my web app to pull lat/lng data from uploaded images, so here you go.

This patch adds two new metadata fields: latitude and longitude.

EXIF lat/lng data is stored as an array of DMS values, not decimal, so this also adds a new function dmstodec() which converts this array into a decimal value you can easily store in a database.

Added functionality to support EXIF latitude and longitude data and convert it into decimal format.
@milesj
Copy link
Owner

milesj commented Dec 19, 2014

The dmstodec() probably doesn't belong on the File class. Perhaps a static method on Transit.

Could you also change the tabs to spaces and fix the formatting.

@milesj
Copy link
Owner

milesj commented Jan 1, 2015

Any update?

@cait08
Copy link
Contributor Author

cait08 commented Jan 1, 2015

I've been busy but I'm going to be making another PR. Also, I'm thinking that dmstodec() won't be used elsewhere and so probably doesn't even need to be a function. Thoughts?

@milesj
Copy link
Owner

milesj commented Jan 1, 2015

This is true. Could probably all just be inline.

milesj added a commit that referenced this pull request Jan 18, 2015
Added support for EXIF lat/lng
@milesj milesj merged commit 3d9286b into milesj:master Jan 18, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants