在旋转/缩放的地图上平移纬度/经度坐标 [英] Translating lat/lon coordinate on rotated/scaled maps

查看:85
本文介绍了在旋转/缩放的地图上平移纬度/经度坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在旧地图中指出这样的纬度/经度坐标: http://www.davidrumsey.com/luna/servlet/detail/RUMSEY~8~1~3017~90020003:Topographical-Map-Of-The-City-and-C

I need to indicate a lat/lon coordinate in an old map like this: http://www.davidrumsey.com/luna/servlet/detail/RUMSEY~8~1~3017~90020003:Topographical-Map-Of-The-City-and-C

投影在Google地图上: http://rumsey.geogarage.com/maps/g2784000.html

Projected on Google Maps: http://rumsey.geogarage.com/maps/g2784000.html

我知道地图的边界框以及图像的尺寸(以像素为单位),但是我不知道如何在该地图中定位经纬度.

I know the bounding box of the map as well as the dimensions of the image in pixels, but I couldn't figure out how to locate a lat/lon within this map.

左上(40.698291,-74.079051),左下(40.659855,-73.979638),右下(40.855232,-73.835582)和右上(40.882919,-73.940263).

Upper left is (40.698291,-74.079051), Lower Left (40.659855,-73.979638), Lower Right (40.855232,-73.835582) and Upper Right (40.882919,-73.940263).

在历史地图中如何定位地块/基准面是否有标准公式?

Is there a standard formula on how to do locate a lot/lon datum in the historic map?

推荐答案

只要您可以假设纬度/经度坐标形成一个矩形网格(在城市范围内,这应该是一个合理的近似值,尽管这样做会失败)较大的区域或非常精确的数据),则可以将坐标之间的变换假定为投影变换.请参见这篇文章(或这个(如果您希望继续使用SO),以获取有关如何计算相应的转换矩阵并将其用于转换坐标的详细信息.

As long as you can assume your lat/lon coordinates to form a rectangular grid (which should be a reasonable approximation on a city scale, although it will fail for larger areas or very precise data), you can assume your transformation between coordinates to be a projective transformation. See this post (or this one if you prefer to stay on SO) for details on how to compute the corresponding transformation matrix and use that to convert coordinates.

基于这篇文章我对结果公式如下:

z =   559.910562534*lat - 539.510073656*lon - 64123.7576703
x = (-5629.59680416*lat - 2176.56828347*lon + 67876.8560722)/z
y = ( 8466.61769096*lat - 11263.0392472*lon - 1178932.12938)/z

所得的坐标 x y 从零到一进行了测量,其中零表示左边的坐标.上边缘,右边一个.下边缘.

The resulting coordinates x and y are measuered from zero to one, where zero denotes the left resp. upper edge, and one the right resp. lower edge.

如果仅凭矩形网格的假设还不够,那么您需要了解有关用于创建地图的投影的详细信息,以便将地图位置与球坐标相关联.

If the assumption of a rectangular grid is not enough, you'll need to know details about the projection used to create the map, so that you can relate map positions to spherical coordinates.

这篇关于在旋转/缩放的地图上平移纬度/经度坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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