GPS坐标到像素 [英] GPS coordinates to pixel

查看:258
本文介绍了GPS坐标到像素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从GPS坐标中创建图像(多边形)。我有这样的坐标:


(49.274633220,17.160206083),(49.276968797,17.162732143),(49.278188519,17.162391767),(49.279761626,17.161087954 ),......


我需要将它们转换为XY像素点。每一对坐标都是创建的多边形的顶点。



具有所有坐标的文件:

GPS.txt



以及创建的多边形的外观如:



任何想法如何转换坐标?在所有情况下,你需要一个变换形式lat,lon(spherical)to cartesian(x,y) )协调。
如果多边形不大于100km,则可以使用简单的圆柱等距投影。
否则,您可以使用墨卡托投影。 (谷歌地图也使用它)


I need to create image (polygon) from GPS coordinates. I have coordinates like this:

(49.274633220,17.160206083),(49.276968797,17.162732143),(49.278188519,17.162391767),(49.279761626,17.161087954), ......

And I need to transform them to XY pixel points. Each pair of coordinates are vertex of created polygon.

File with all coordinates:

GPS.txt

and how the created polygon should look like:

Any idea how can I transform the coordinates? Thanks for all reply.

解决方案

In all cases you need a transformation form lat,lon (spherical) to cartesian (x,y) coordinated. If the polygon is not bigger than 100km you can use a simple Cyclindrical Equidistant Projection. Otherwise, you may use a Mercator Projection. (Google Maps uses that too)

这篇关于GPS坐标到像素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆