-
Notifications
You must be signed in to change notification settings - Fork 297
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
Limit precision in gpx.fmt #156
Comments
This post disagrees with that assessment. See the If you're using the |
The issue is with gpx.fmt (see title). I did not use But your link tells me I am wrong about accuracy—that there are devices with greater accuracy than the GPS system can provide. I've edited the suggestion to acknowledge that possibility. |
Ah, my apologies. I indeed did not read the title closely enough. If you look at the If you change line 30 to remove the hashtags, then the |
OK, I would revise the request to leave the # out of the "official" file so that the user can decide the format on the command line. |
I think it is best to write the full precision to the GPX file by default. If I made the change you suggest then people would complain about a loss in precision. |
Then perhaps text in the file comments and in the man page to explain the option for folks who have the same lack of knowledge that I had. Not knowing that the # in the file overrides the -coordformat might induce some frustration. |
I like the idea of adding a note to this effect in the gpx.fmt file. Here is what I came up with:
|
On Sep 13, 2022, at 08:53, Phil Harvey ***@***.***> wrote:
I like the idea of adding a note to this effect in the gpx.fmt file. Here is what I came up with:
4) Coordinates are written at full resolution. To change this,
remove the "#" from the GPSLatitude/Longitude tag names below
and use the -c option to set the desired precision.
Sounds good to me. Might also want to consider revising this part of the man page:
exiftool -p gpx.fmt -d %Y-%m-%dT%H:%M:%SZ dir > out.gpx
Generate a GPX track log from all images in directory "dir". This
example uses the "gpx.fmt" file included in the full ExifTool
distribution package and assumes that the images in "dir" have all
been previously geotagged.
The -d isn’t needed now since you have put the equivalent into the format file.
By the way, it still works even if some of the images have no GPS tags. Those get an error message back to the shell and are omitted from the output GPX file. For a bonus, that file can then be used to tag the other images using other tools that interpolate by time of creation.
…--
Wes Groleau
“An adventure is only an inconvenience rightly considered.
An inconvenience is only an adventure wrongly considered.”
― G.K. Chesterton
|
Good point, thanks. I'll update this. |
The following request has some inaccuracies due to a lack of understanding on my part. I have suggested an alternative in the following comments.
I suggest this file should format lat/long to seven decimal places or less. Seven would be one centimeter or less.
(
-p gpx-fmt
causes-c
to be ignored.)With the claim that there are devices with greater accuracy, an alternative might be for some other part of the perl code to make the
-c
not be ignored. Otherwise everyone would have to maintain their own copy of gpx.fmt for whatever precision they prefer.The text was updated successfully, but these errors were encountered: