wandergis / coordtransform Goto Github PK
View Code? Open in Web Editor NEW提供了百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换
Home Page: http://wandergis.github.io/coordtransform
License: MIT License
提供了百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换
Home Page: http://wandergis.github.io/coordtransform
License: MIT License
使用插件转的和使用http://www.gpsspg.com/maps.htm
在线转的有0.001的差距,哪个更准一些?
插件:
通用便捷起见,为啥不能是一个函数带多个参数呢?
bd09togcj02 方法转换出来的坐标,偏差有些大
你好,我按照这个项目和 python 版本翻译了一个 go 语言的实现,在readme中引用了这个项目,这样做合适吗
martiangeo
这是我第一次在 github上 提 issues,也不知道格式啥的,就随便提了吧!
其实问题如题,总是会说找不到模块,我过一会儿会想办法提交一个定义文件
wgs84 转国标 再转百度不准 差好几十米
function gcj02towgs84里的mglat,mglng变量没有生命,虽然执行没问题,建议改下更完美
Lat first or Lon first...
市面上好多模块都是Lat在前...合作时候需要转换一下..
之前一直使用百度的接口做坐标系的转换。
但有时候总是转换不成功。
我测了一下这个:
function test(x,y) {
var temp = coordtransform.wgs84togcj02(x,y)
return coordtransform.gcj02tobd09(temp[0],temp[1])
}
不准额。
是我哪里出问题了吗?
Line 34 in 26fe9a5
Could you explain how will this statement works? Thanks.
转换算法的正确度能有多高?
请问,安卓下如何使用?
能不能写个 Openlayers 地图坐标转换的
rt
geojson在某些场景还是必要的
我的应用包含国内国外。那么在调用这个工具的时候,我是否要先判断地理位置,如果是在天朝才使用这个库的工具呢?
明哥,求
公司项目用百度地图采集了一些点位,需要转换为84和国测局坐标,谢谢您提供的转换库~
因移动端需要移植了PHP版本,并发布了composer包,托管地址:
https://github.com/billy-poon/coordtransform
希望您不介意~
Hello, I found your code very useful, thanks for that!
I was wondering if you would consider adding a LICENSE file to your repository? At this moment I'm not sure if I can use the code or not.
我使用BD09转GCJ02然后再转WGS84好像产生了很大偏差。但是使用python版本的BD09直接转WGS84的方法偏差不是很大。
i need it. so good
支持geojson的转换吗
您好,这个坐标转换是国测局绝密保密等级。会不会有法律风险?
我想问一下, 你这个 wgs 和 gcj 转换的误差范围在多少范围内
墨卡托是一种投影方式,并不直接与坐标系相关。据我了解主要的地图厂商都是使用Web Mercatord
的投影方式。在墨卡托投影后,各地图厂商对瓦片坐标的定义有所不同。
所以墨卡托投影或瓦片坐标转换直接放入该项目不知道是否合适?
我参考了你的类库,额外写了一个高德地图、百度地图、谷歌地图各自经纬度坐标与瓦片坐标相互转换的类库--tile-lnglat-transform。
var x_PI = 3.14159265358979324 * 3000.0 / 180.0;
为什么 bd09togcj02 和 gcj02tobd09 用的是这个参数呢,是有什么特殊作用吗
用这套算法将wgs84转成百度的,跟百度自己转出来的不一样,是不是这个算法太老了,百度又更新了新的算法?
请问这个误差是不可避免的么?试过用其它的库转换,也都有一定的误差!
系统名称 Mac OS X
版本号 10.15.5
浏览器名称 Chrome
版本号 83.0.4103
coordtransform.bd09togcj02(115.475216, 38.879741);
//(2) [115.46872993578151, 38.87371978266757]
coordtransform.gcj02towgs84(115.46872993578151, 38.87371978266757);
//(2) [115.46242546559161, 38.87283036245824]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.