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

Windows Explorer doesn't recognize the Long/Lat ref #94

Closed
extellior opened this issue Mar 18, 2022 · 1 comment
Closed

Windows Explorer doesn't recognize the Long/Lat ref #94

extellior opened this issue Mar 18, 2022 · 1 comment

Comments

@extellior
Copy link

Windows Explorer can read the longitude & latitude coordinates written by this, but it doesn't pick up on the N/S or E/W in my tests so far.

I'm ultimately consuming this in a VB.NET Framework program using my own C# DLL on .NET Standard 2.0 as a go-between.

I just pass a simple string char to my DLL and it does the conversion and saves, like so:

                var file = ImageFile.FromFile(source);

                GPSLatitudeRef gpslatref = new GPSLatitudeRef();
                if (latref == "N")
                {
                    gpslatref = GPSLatitudeRef.North;
                }
                if (latref == "S")
                {
                    gpslatref = GPSLatitudeRef.South;
                }

                GPSLongitudeRef gpslongref = new GPSLongitudeRef();
                if (longref == "E")
                {
                    gpslongref = GPSLongitudeRef.East;
                }
                if (longref == "W")
                {
                    gpslongref = GPSLongitudeRef.West;
                }

                // write new values

                file.Properties.Set(ExifTag.GPSLatitude, latdeg, latmin, latsec);
                file.Properties.Set(ExifTag.GPSLongitude, longdeg, longmin, longsec);
                file.Properties.Set(ExifTag.GPSLatitudeRef, gpslatref);
                file.Properties.Set(ExifTag.GPSLongitudeRef, gpslongref);
                if (String.IsNullOrEmpty(dest))
                {
                    dest = source;
                }
                file.Save(dest);

Is there any trick that will get Windows Explorer to see the lat/long refs?

@oozcitak
Copy link
Owner

oozcitak commented Apr 2, 2022

This seems to be an explorer issue as discussed here: https://exiftool.org/forum/index.php?topic=6201.0

image

Applying the registry fix in the thread adds the hemisphere tags to the details pane:

image

@oozcitak oozcitak closed this as completed Apr 2, 2022
oozcitak added a commit that referenced this issue Apr 2, 2022
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

2 participants