It's all about conversion of units. If the map represents from the left to right 7.65 to 9.34 and the width of the map is 200, than each pixel is 0.00845 units. Of course with Flash's poor floating point math, you might want to convert it to whole numbers before you perform your calculations.
!k -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marcelo Volmaro Sent: March 10, 2006 2:28 PM To: FlashCoders Subject: [Flashcoders] Math, Maps and problems... Hi, I have to make an app that, given a bitmap of a Map (a photo of a city), and given the georeferences of the upper-left corner and lower-right corner of that photo, take any group of latitudes/longitudes and draw on the map that coordinates. I´ve tried using the Mercator projection formula, but for some reason it doesn´t work. Probably because i need to "interpolate" the whole world size from the given map. Ideas? Formulas? Thanks in advance!, -- _____________ Marcelo Volmaro _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com