Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not uniform value for GPS coordinates #28

Closed
zdila opened this issue Sep 19, 2017 · 4 comments
Closed

Not uniform value for GPS coordinates #28

zdila opened this issue Sep 19, 2017 · 4 comments

Comments

@zdila
Copy link

zdila commented Sep 19, 2017

For some pictures (like http://www.freemap.sk:3000/gallery/pictures/67129/image) the returned value of eg. GPSLatitude is

{"value":[21,13,24.539994984954866],"description":21.223483331940262}

but for others (like https://user-images.githubusercontent.com/26544966/30610062-66d59c6e-9d7d-11e7-8a7b-99a26d36a8ff.JPG) it is

{"value":"17,18.441667E","attributes":{},"description":"17,18.441667E"}

Could it be unified (in description)?

@mattiasw
Copy link
Owner

mattiasw commented Oct 8, 2017

This is the same root problem as in #27. The value from Exif is overwritten by the XMP value. And since XMP properties can have any name, no conversions are made for the description as is done for Exif. (This should definitely be made clear in the README.) That being said, some are probably more "standardized" than others and could be converted (e.g. GPS properties and orientation). I will look into this after we have solved #27.

@disarticulate
Copy link
Contributor

Within the module I'm building, I'm using isNaN(parseFloat(suspect.description)) to make sure the coordinates are legit.

I posted in #27 the fork I put together to bypass the flattening of the different tags.

@mattiasw
Copy link
Owner

Please have a look at pull request #32 for a solution to this.

@mattiasw
Copy link
Owner

mattiasw commented Jan 4, 2018

Fixed in #32.

@mattiasw mattiasw closed this as completed Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants