最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How can I convert UTM coordinates from Meters to Feet? - Stack Overflow

programmeradmin2浏览0评论

Does anyone have a formula or conversion that will switch my UTM coordinates from Meters to Feet? I found Javascript code that will convert UTM coords in meters to Lat/Long but I will need my UTM in feet before I convert it to Lat/Long.

Does anyone have a formula or conversion that will switch my UTM coordinates from Meters to Feet? I found Javascript code that will convert UTM coords in meters to Lat/Long but I will need my UTM in feet before I convert it to Lat/Long.

Share Improve this question edited Mar 18, 2014 at 20:43 Kara 6,22616 gold badges53 silver badges58 bronze badges asked Apr 21, 2010 at 14:53 JoshJosh 1,9114 gold badges27 silver badges34 bronze badges 4
  • 4 You are just looking for a formula for converting metres to feet? 1 metre = 3.280839895 feet. Just curious, if you have UTM in metres and a routine to convert that to lat/lon, why do you need UTM in feet? (I'm pretty sure UTM is defined as being in metres not feet, so in feet it's not really UTM) – Lazarus Commented Apr 21, 2010 at 14:58
  • Good God.. I can't believe I missed that. Thanks Lazarus. Can you post that response to the answers so I can give you credit? thanks – Josh Commented Apr 21, 2010 at 15:01
  • 1 I've added it but just glad to help. I've spent many, many hours staring at problem only to have someone else point to the issue without really even reading the code. Some times we can be just too close to the problem space :) – Lazarus Commented Apr 22, 2010 at 12:09
  • Sounds like there's something unorthodox with your UTM conversion code if it needs feet (UTM by definition uses metres). An alternative for the transform is to simply use the Proj4JS JavaScript library. Open Source + supports a number of different projections,etc. – winwaed Commented Dec 3, 2010 at 13:56
Add a ment  | 

2 Answers 2

Reset to default 1

You are just looking for a formula for converting metres to feet? 1 metre = 3.280839895 feet.

Actually, 1 inch is defined to be 25.4 mm, and 1 foot is exactly 12 inches, so 1 foot is exactly 0.3048 m.

Hence 1 m is 1/0.3048 feet, or 3.280839895013123359580052493438320209973753... feet.

发布评论

评论列表(0)

  1. 暂无评论