osm_georeferencing.py 文件源码

python
阅读 53 收藏 0 点赞 0 评论 0

项目:blender-tools 作者: vvoovv 项目源码 文件源码
def fromGeographic(self, lat, lon):
        lat = math.radians(lat)
        lon = math.radians(lon-self.lon)
        B = math.sin(lon) * math.cos(lat)
        x = 0.5 * self.k * self.radius * math.log((1.+B)/(1.-B))
        y = self.k * self.radius * ( math.atan(math.tan(lat)/math.cos(lon)) - self.latInRadians )
        return (x,y)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号