• Post Reply Bookmark Topic Watch Topic
  • New Topic

Converting Latitude to Pixel

 
Premanand ganapathy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am using SunoneStudio4ME with MIDP 1.0 Currently i am getting a map from TigerDatabase by giving Latitude and Longtitude and converting the image to PNG format and displaying in the emulator. I want to know the pixel values for the Image displayed in the device. Is there any algorithm to convert the Latitude to Pixel.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think thats going to depend on the map projection, but for small areas, I would expect a linear interpolation to work. How are the boundaries of the map specified?
Bill
 
Premanand ganapathy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
thanks for the response. The Scale size of the Map is given as 1:218074 in the Tiger Database. width of the Image is 0.360 and the hieght is 0.130. I am Converting this GIF file to PNG file and The size of the map displayed in the Emulator is Height 200 and Width 200. My Screen Display Size is 96 * 100.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are those units of height and width? Degrees? Minutes?
Bill
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!