开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
master
分支 (4)
标签 (163)
master
devel
release
dotnet
v1.49.2-c
v1.49.1-c
majic/release/1.49
v1.49
r1.49
majic/release/1.48-001
v1.48.1-c
majic/release/1.48
v1.48
r1.48
v1.47-patch1
r1.47-patch1
majic/release/1.47
v1.47
r1.47
majic/release/1.46-003
majic/release/1.45-001
majic/release/1.46-002
majic/release/1.46-001
v1.46.1-c
master
分支 (4)
标签 (163)
master
devel
release
dotnet
v1.49.2-c
v1.49.1-c
majic/release/1.49
v1.49
r1.49
majic/release/1.48-001
v1.48.1-c
majic/release/1.48
v1.48
r1.48
v1.47-patch1
r1.47-patch1
majic/release/1.47
v1.47
r1.47
majic/release/1.46-003
majic/release/1.45-001
majic/release/1.46-002
majic/release/1.46-001
v1.46.1-c
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (4)
标签 (163)
master
devel
release
dotnet
v1.49.2-c
v1.49.1-c
majic/release/1.49
v1.49
r1.49
majic/release/1.48-001
v1.48.1-c
majic/release/1.48
v1.48
r1.48
v1.47-patch1
r1.47-patch1
majic/release/1.47
v1.47
r1.47
majic/release/1.46-003
majic/release/1.45-001
majic/release/1.46-002
majic/release/1.46-001
v1.46.1-c
code
/
python
/
doc
/
interface.rst
code
/
python
/
doc
/
interface.rst
interface.rst 5.20 KB
一键复制 编辑 原始数据 按行查看 历史

The library interface

Jump to

The units

All angles (latitude, longitude, azimuth, arc length) are measured in degrees with latitudes increasing northwards, longitudes increasing eastwards, and azimuths measured clockwise from north. For a point at a pole, the azimuth is defined by keeping the longitude fixed, writing φ = ±(90° − ε), and taking the limit ε → 0+

Geodesic dictionary

The results returned by :meth:`Geodesic.Direct <geographiclib.geodesic.Geodesic.Direct>`, :meth:`Geodesic.Inverse <geographiclib.geodesic.Geodesic.Inverse>`, :meth:`GeodesicLine.Position <geographiclib.geodesicline.GeodesicLine.Position>`, etc., return a dictionary with some of the following 12 fields set:

  • lat1 = φ1, latitude of point 1 (degrees)
  • lon1 = λ1, longitude of point 1 (degrees)
  • azi1 = α1, azimuth of line at point 1 (degrees)
  • lat2 = φ2, latitude of point 2 (degrees)
  • lon2 = λ2, longitude of point 2 (degrees)
  • azi2 = α2, (forward) azimuth of line at point 2 (degrees)
  • s12 = s12, distance from 1 to 2 (meters)
  • a12 = σ12, arc length on auxiliary sphere from 1 to 2 (degrees)
  • m12 = m12, reduced length of geodesic (meters)
  • M12 = M12, geodesic scale at 2 relative to 1 (dimensionless)
  • M21 = M21, geodesic scale at 1 relative to 2 (dimensionless)
  • S12 = S12, area between geodesic and equator (meters2)

outmask and caps

By default, the geodesic routines return the 7 basic quantities: lat1, lon1, azi1, lat2, lon2, azi2, s12, together with the arc length a12. The optional output mask parameter, outmask, can be used to tailor which quantities to calculate. In addition, when a :class:`~geographiclib.geodesicline.GeodesicLine` is constructed it can be provided with the optional capabilities parameter, caps, which specifies what quantities can be returned from the resulting object.

Both outmask and caps are obtained by or'ing together the following values

DISTANCE_IN is a capability provided to the GeodesicLine constructor. It allows the position on the line to specified in terms of distance. (Without this, the position can only be specified in terms of the arc length.) This only makes sense in the caps parameter.

LONG_UNROLL controls the treatment of longitude. If it is not set then the lon1 and lon2 fields are both reduced to the range [−180°, 180°). If it is set, then lon1 is as given in the function call and (lon2lon1) determines how many times and in what sense the geodesic has encircled the ellipsoid. This only makes sense in the outmask parameter.

Note that a12 is always included in the result.

Restrictions on the parameters

  • Latitudes must lie in [−90°, 90°]. Latitudes outside this range are replaced by NaNs.
  • The distance s12 is unrestricted. This allows geodesics to wrap around the ellipsoid. Such geodesics are no longer shortest paths. However they retain the property that they are the straightest curves on the surface.
  • Similarly, the spherical arc length a12 is unrestricted.
  • Longitudes and azimuths are unrestricted; internally these are exactly reduced to the range [−180°, 180°); but see also the LONG_UNROLL bit.
  • The equatorial radius a and the polar semi-axis b must both be positive and finite (this implies that −∞ < f < 1).
  • The flattening f should satisfy f ∈ [−1/50,1/50] in order to retain full accuracy. This condition holds for most applications in geodesy.

Reasonably accurate results can be obtained for −0.2 ≤ f ≤ 0.2. Here is a table of the approximate maximum error (expressed as a distance) for an ellipsoid with the same equatorial radius as the WGS84 ellipsoid and different values of the flattening.

abs(f) error
0.003 15 nm
0.01 25 nm
0.02 30 nm
0.05 10 μm
0.1 1.5 mm
0.2 300 mm

Here 1 nm = 1 nanometer = 10−9 m (not 1 nautical mile!)

Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

用于执行地理,UTM,UPS,MGRS,地心和本地笛卡尔坐标之间的转换,用于重力(例如,EGM2008),大地水准面高度和地磁场(例如,WMM2010)计算,以及解决测地问题
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/crowraven/code.git
git@gitee.com:crowraven/code.git
crowraven
code
GeographicLib
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /