Skip to content

Releases: TYEclipse/dsh-geodesy

dsh-geodesy v0.2.0

Choose a tag to compare

@TYEclipse TYEclipse released this 03 Sep 16:07

dsh-geodesy v0.2.0 — three new spherical-geometry tools

New tools

  • geo_rhumb — rhumb-line (constant-heading / loxodrome) distance and bearing between two points, with the great-circle distance for comparison. Keeps the same compass heading the whole way.
  • geo_intersection — crossing of two great-circle paths (start point + initial bearing each). Reports the crossing nearest to the first path's start, the antipodal crossing, and distances from both starts; coincident paths are rejected with a clear error.
  • geo_area — area and perimeter of a spherical polygon via spherical excess (Girard's theorem), pole-safe vector implementation, complement area always included, deterministic winding semantics.

Quality

  • 154 tests all green (39 new); every numeric anchor generated by an independent closed-form + numeric-integration oracle (test/anchors_v2.py), including the exact octant case (area = πR²/2), planar shoelace limits, and cross-track ≈ 0 checks for intersections.
  • Zero runtime dependencies, pure math, no network I/O.

Install: dsh plugin --profile web add github:TYEclipse/dsh-geodesy


中文 changelog

新增三个球面几何工具:geo_rhumb(恒向线/等角航线距离与恒定航向角,附大圆距离对比)、geo_intersection(两条大圆路径交点:最近交点+对跖交点+距两端起点距离,重合路径明确报错)、geo_area(球面多边形面积与周长,球面角盈公式,矢量实现极点安全,附互补区域面积)。154 个测试全绿,全部数值锚点由独立闭式+数值积分 oracle 脚本生成(含八分球精确例 πR²/2、平面鞋带公式极限交叉验证、交点横偏距≈0 校验)。零运行时依赖。

v0.1.0

Choose a tag to compare

@TYEclipse TYEclipse released this 20 Aug 16:15

dsh-geodesy v0.1.0

大地测量数学工具箱 Geodesy math toolbox — 首发版本(历史发布补账 / historical release backfill)。

工具 Tools

  • geo_distance — haversine 大圆距离(km/m/mi/nmi)+ 初末方位角 + 16 风向罗盘
  • geo_bearing — 初末方位角 + 大圆中点
  • geo_destination — 正算问题 + 往返校验
  • coord_parse — 十进制 / DMS / 后缀 / 坐标对解析(确定性规则)

安装 Install

dsh plugin --profile <name> add github:TYEclipse/dsh-geodesy

零运行时依赖(zero runtime dependencies,纯三角)。IUGG 平均半径 6371.0088 km,可配 radiusKm(月球 / 火星)。