资源简介
python实现百度墨卡托坐标,百度经纬度坐标,火星坐标,WGS84坐标之间的相互转换。
代码片段和文件信息
#!/usr/bin/python
# -*- coding: utf-8 -*-
# author:zhoulong_GISER
# -*- coding: utf-8 -*-
# blog:https://blog.csdn.net/qq_33356563
#bd墨卡托转BD-09
import math
def Yr(lnglatb):
if b!=‘‘:
c=b[0]+b[1]*abs(lnglat[0])
d=abs(lnglat[1]/b[9])
d=b[2]+b[3]*d+b[4]*d*d+b[5]*d*d*d+b[6]*d*d*d*d+b[7]*d*d*d*d*d+b[8]*d*d*d*d*d*d
if 0>lnglat[0]:
bd=-1*c
else:
bd=c
lnglat[0]=bd
if 0 > lnglat[0]:
bd2 = -1 * d
else:
bd2 = d
lnglat[1] = bd2
return lnglat
return
def Mecator2BD09(lnglat):
lnglat=[00]
Au=[[1.410526172116255E-8 8.98305509648872E-6 -1.9939833816331 200.9824383106796 -187.2403703815547
91.6087516669843 -23.38765649603339 2.57121317296198 -0.03801003308653 1.73379812E7]
[- 7.435856389565537E-9 8.983055097726239E-6 -0.78625201886289 96.32687599759846 -1.85204757529826
-59.36935905485877 47.40033549296737 -16.50741931063887 2.28786674699375 1.026014486E7]
[- 3.030883460898826E-8 8.98305509983578E-6 0.30071316287616 59.74293618442277 7.357984074871
-25.38371002664745 13.45380521110908 -3.29883767235584 0.32710905363475 6856817.37]
[- 1.981981304930552E-8 8.983055099779535E-6 0.03278182852591 40.31678527705744 0.65659298677277
-4.44255534477492 0.85341911805263 0.12923347998204 -0.04625736007561 4482777.06]
[3.09191371068437E-9 8.983055096812155E-6 6.995724062E-5 23.10934304144901 -2.3663490511E-4
-0.6321817810242 -0.00663494467273 0.03430082397953 -0.00466043876332 2555164.4]
[2.890871144776878E-9 8.983055095805407E-6 -3.068298E-8 7.47137025468032 -3.53937994E-6 -0.02145144861037
-1.234426596E-5 1.0322952773E-4 -3.23890364E-6 826088.5]]
Sp=[1.289059486E7 8362377.87 5591021 3481989.83 1678043.12 0 ]
lnglat[0]=math.fabs(lng)
lnglat[1] =abs(lat)
for d in range(06):
if lnglat[1]>=Sp[d]:
c=Au[d]
break
lnglat=Yr(lnglatc)
return lnglat
def BD09
- 上一篇:利用OpenCV检测人脸python程序
- 下一篇:指静脉识别,keras,CNN
相关资源
- Python-BDD100K大规模多样化驾驶视频数据
- Instant Pygame for Python Game Development How
- Biopython Tutorial
- Think Python 2nd
- 一个小小的表白程序(python)
- Python课堂笔记(高淇400集第一季)
- 二级考试python试题12套(包括选择题和
- pywin32_python3.6_64位
- python+ selenium教程
- PycURL(Windows7/Win32)Python2.7安装包 P
- 英文原版-Scientific Computing with Python
- 7.图像风格迁移 基于深度学习 pyt
- 基于Python的学生管理系统
- A Byte of Python(简明Python教程)(第
- Python实例174946
- Python 人脸识别
- Python 人事管理系统
- 基于python-flask的个人博客系统
- 计算机视觉应用开发流程
- python 调用sftp断点续传文件
- python socket游戏
- 基于Python爬虫爬取天气预报信息
- python函数编程和讲解
- Python开发的个人博客
- 基于python的三层神经网络模型搭建
- python实现自动操作windows应用
- python人脸识别(opencv)
- python 绘图(方形、线条、圆形)
- python疫情卡UN管控
- python 连连看小游戏源码
评论
共有 条评论