Hi all,<br><br>being new to this list, please advice if this question is better asked elsewhere.<br><br>I wonder if Proj4js is the right way to solve this challenge I am facing:<br><br>I have two sets of Latitude/Longitude coordinates.<br>
<br>The first one is the coordinates and the direction of an equirectangular panorama picture.<br>The second one of a point in sight. So it is on the picture.<br><br>I need the x/y coordinates of the second point to draw it on the picture.<br>
In javascript.<br><br>Example equirectangular panorama picture available here: <br><a href="http://www.diy-streetview.org/data/development/20100121/small/001sm.jpg">http://www.diy-streetview.org/data/development/20100121/small/001sm.jpg</a><br>
<br>Example application (using bearing and distance instead of Lat/Lon coordinates): <br><a href="http://www.diy-streetview.org/data/development/20100121/streetview-playerA.html?streetview=small/001sm.jpg">http://www.diy-streetview.org/data/development/20100121/streetview-playerA.html?streetview=small/001sm.jpg</a><br>
<br>Assumptions:  <br>The horizon is half the hight of the image. <br>The camera was 2 meters above ground. <br><br>Hint:  <br>It&#39;s in the Netherlands, so a negative Altitude is no error. They are really below the waterline.<br>
<br>Skipp the camera hight and GPSAltitude when its to complicated. <br><br>Data for testing:<br><br>001sm.jpg<br>GPSLatitude: 51.802104<br>GPSLongitude: 3.929393<br>GPSAltitude: 1.100000<br>GPS Image Direction = 260 degrees<br>
<br>002sm.jpg<br>GPSLatitude: 51.802082<br>GPSLongitude: 3.929200<br>GPSAltitude: -2.270000<br>GPS Image Direction = 265 degrees<br><br>003sm.jpg<br>GPSLatitude: 51.802082<br>GPSLongitude: 3.928986<br>GPSAltitude: -3.710000<br>
GPS Image Direction = 275 degrees<br><br>004sm.jpg<br>GPSLatitude: 51.802104<br>GPSLongitude: 3.928771<br>GPSAltitude: -3.710000<br>GPS Image Direction = 270 degrees <br><br>Thanks, <br>Jan<br>-- <br><a href="http://www.DIY-streetview.org">http://www.DIY-streetview.org</a>