From: Nick H. <nic...@ho...> - 2011-06-24 13:31:25
|
On 22/06/11 20:58, Rob Healey wrote: > 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... The GPS Coordinates will be in one of the 4 input formats if no validation error is shown to the user. Feel free to use any of the output formats you choose. When saving the data you will need a list of Rational. It is easy to get this from the "DEG-:" output format. (I already wrote some code to do this.) I haven't looked at adding another output format to conv_lat_lon. Perhaps we should keep this within the gramplet for now. Nick. > > 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... > <mailto: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!" > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > > > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel |