javascript - Can WGS84 results be converted to NAD83 in form? -


i have html5 form uses geolocator script populate text boxes lat/long & elevation tablet gps. data return using wgs84 datum database used store form data requires nad83 datum.

is there script convert default wgs84 data nad83 prior populating fields or data have post-processed?

<fieldset>    <div> latitude: <input type="text" id="lat" name="lat" ></div>   <div>longitude: <input type="text" id="long" name="long" value=""></div>   <div><label><input type="text" id="acc" name="long" value="" data-mini="true"></label> <button onclick="getlocationconstant()" value="get location" data-mini="true"></button>     </div>   <script>  function getlocationconstant()  { if(navigator.geolocation) {     navigator.geolocation.getcurrentposition(ongeosuccess,ongeoerror);   } else {     alert("your browser or device doesn't support geolocation"); }  }   // if have successful location update  function ongeosuccess(event)  { document.getelementbyid("lat").value =  event.coords.latitude;  document.getelementbyid("long").value = event.coords.longitude; document.getelementbyid("height").value = event.coords.altitude; document.getelementbyid("acc").value = event.coords.accuracy +"% accuracy";   }   // if has gone wrong geolocation request  function ongeoerror(event)  { alert("error code " + event.code + ". " + event.message);  }   </script>          <div>elevation: <input type="text" name="height" id="height"></div>  </fieldset> 

the formula transform between different datums or projections complex.

there open source project proj4(javascript version) can every thing want map projection. can from:

http://trac.osgeo.org/proj/


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -