Convert from latitude, longitude to x, y

后端 未结 5 1806
夕颜
夕颜 2020-11-30 05:10

I want to convert GPS location (latitude, longitude) into x,y coordinates. I found many links about this topic and applied it, but it doesn\'t give me the correct answer!

5条回答
  •  再見小時候
    2020-11-30 05:24

    Its better to convert to utm coordinates, and treat that as x and y.

    import utm
    u = utm.from_latlon(12.917091, 77.573586)
    

    The result will be (779260.623156606, 1429369.8665238516, 43, 'P') The first two can be treated as x,y coordinates, the 43P is the UTM Zone, which can be ignored for small areas (width upto 668 km).

提交回复
热议问题