From: Rob H. <rob...@gm...> - 2011-06-22 19:58:24
|
Dear Nick: Ok, I understand not re- displaying the converted Latitude/ Longitude to the user! Unfortunately, I need to have the coordinates in pyexiv2.Rational() to be able to save them properly! Is there a way to have a configuration settings for either decimal or dms display for my addon only? This way once, it has been read from the image, we could display it in a format that the user wants? Either ISO-D or decimal... I have no problem in displaying them with +/ - symbols rather than NESW... This is a simply change... I also have no problem letting the user enter the GPS Coordinates in one of the four ways that Gramps allows already! Thank you, Rob G. Healey On Wed, Jun 22, 2011 at 9:22 AM, Nick Hall <nic...@ho...> wrote: > > > On 22/06/11 08:08, Rob Healey wrote: > >> Dear Nick: >> >> I have attached a current copy of my addon with this email! >> >> I would appreciate it if you could show me how to make the GPS Coordinates >> automaticcally flip to ISO-D if they are entered as decimal as PlaceEdit >> does once you close the editor window in Gramps? >> > > The place editor doesn't convert the format of GPS Coordinates - it will > store them exactly as the user enters them. It uses conv_lat_lon for > validation only. The Place views then use conv_lat_lon to format the > columns for display. > > I suggest that you let the user enter the GPS Coordinates in any of the > input formats recognised by conv_lat_lon. Don't format them for display > (use the format chosen by the user). When you need to save them use > conv_lat_lon to convert the string to a know format first. Choose a format > that uses +/- rather than NSEW so you don't have to worry about localisation > issues. > > > > >> I would like them to be in the ISO-D format so that I may process them for >> pyexiv2.Rational to save them... >> > > It is a pity that Fraction is only available in python >=2.6. Perhaps we > could add an "EXIF" output format to conv_lat_lon? We could use pyexiv2 > Rational in the output and the result could be None if the pyexiv2 module is > not available. > > > Nick. > > > > >> -- >> Sincerely yours, >> Rob G. Healey >> >> "Always surround yourself with people that inspire you to >> greatness!" >> >> -- Sincerely yours, Rob G. Healey "Always surround yourself with people that inspire you to greatness!" |