Git Product home page Git Product logo

geo's Introduction

geo

##Overview このプログラムは以下のことができます。

  • BLH(Latitude, Longitude, Height)からECEF(X, Y, Z)への変換
  • ECEFからENU(East, North, Up)への変換
  • ENUから2点間の方位と距離を算出

##Description GPSの測位計算プログラム入門 -その1-を参考に C++仕様に改変したものです。

Usage

  1. void blh2ecef(double *latitude, double *longitude, double *height, double *ecef);
    BLH(Latitude, Longitude, Height)からECEF(X, Y, Z)に変換する
    [入力]
    double latitude : 緯度
    double longitude : 経度
    double height : 高さ
    double ecef[3] : ECEF(X : ecef[0], Y : ecef[1], Z : ecef[2])が代入される

  2. void ecef2enu(double *own, double *other, double *enu);
    2点のECEF(X, Y, Z)からENU(East, North, Up)に変換する
    [入力]
    double own[3] : 始点のECEF
    double other[3] : 終点のECEF
    double enu[3] : 始点から終点へのENU(East : enu[0], North : enu[1], Up : enu[2])が代入される

  3. double angle(double east, double north); 始点から終点への方位角を算出する
    [入力]
    double east : enuのeast値
    double north : enuのnorth値
    [出力]
    北を0度とした方位角が出力される

  4. double distance(double east, double north); 始点と終点の距離を算出する
    [入力]
    double east : enuのeast値(通常enuは[m])
    double north : enuのnorth値(通常enuは[m])
    [出力]
    2点間の距離(入力値が[m]なら[m])が出力される

  5. double height(double altitude, double geoid);
    楕円体高を算出する
    [入力]
    double altitude : 標高[m]
    double geoid : ジオイド高[m]
    [出力]
    楕円体高[m]が出力される
    一般にECEFの算出に用いるHeight値には楕円体高を用いる

Install

geo.hppgeo.cppを同じフォルダに入れておき 実装したいプログラムにgeo.hppをインクルードしてください。

Licence

MIT

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.