Giter Site home page Giter Site logo

hookttg / gps_coordinatetransform Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xxzl0130/gps_coordinatetransform

0.0 0.0 0.0 15 KB

GPS经纬度坐标类,提供了BD-09,GCJ-02,WGS-84以及MC墨卡托投影之间的转换

License: MIT License

C++ 100.00%

gps_coordinatetransform's Introduction

GPS_CoordinateTransform

GPS经纬度坐标类,提供了BD-09GCJ-02WGS-84以及MC墨卡托投影之间的转换。成员变量只有经纬度两个double,以便与其他二进制格式兼容。不保存坐标系类型,需要用户自行记录,也因此各转换函数不会做合法性检查。

成员变量

double longitude; // 经度

double latitude; // 纬度

初始化方法

提供默认构造函数、输入两个double的构造函数以及使用std::pair<double,double>的构造函数。

坐标系类型

坐标系代号 名称 使用举例
BD-09 百度 百度地图
GCJ-02 国家测绘局 高德地图 腾讯搜搜地图 阿里云地图 谷歌地图(国内) GPS设备
WGS-84 世界大地测量系统 谷歌地图(国外) GPS设备(国外)
MC 墨卡托投影 海图 航路图

坐标转换方法

原始坐标系 目标坐标系 方法
GCJ-02 BD-09 GCJ02toBD09
BD-09 GCJ-02 BD09toGCJ02
GCJ-02 WGS-84 GCJ02toWGS84
WGS84 GCJ-02 WGS84toGCJ02
BD-09 WGS-84 BD09toWGS84
WGS-84 BD-09 WGS84toBD09
MC BD-09 MCtoBD09
BD-09 MC MCtoBD09

gps_coordinatetransform's People

Contributors

xxzl0130 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.