>I would like to ask a question regarding calculation of UTM letter in >vikviewport.c/vik_viewport_screen_to_coord() >function.
>However the code doesn't seem to consider a case where the input screen >position may be located in another >latitude band. The band letter in >resulting utm variable is always set to be the same as band letter of >viewport's >center coordinate. I think that the letter of resulting utm should >be calculated in some way. >Please let me know your opinion. Yes I agree the code is not ideal. However there are couple factors here: I don't think Viking is used much in UTM as a general purpose viewer - since there aren't many if any tile sources in UTM projections. More typical is probably using a GeoRef layer to view an existing map image (this is the way I use it in order to test it's working); although I suppose one could get a image that goes across letter boundaries. I don't know what the solution is, in working in purely UTM coordinates. Also the current screen conversion doesn't take into account the UTM 'anomalies' around Svalbard. A possible way around it would be convert the center into Lat/Lon, workout the input screen position in Lat/Lon and then convert back into UTM. _______________________________________________ Viking-devel mailing list Viking-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/viking-devel Viking home page: http://viking.sf.net/