9ee2163cc7
- 新增月掩恒星和行星:支持搜索、掩甚点、全球掩带及固定地点轨迹计算 - 支持恒星星表坐标转换、有限盘面行星接触事件和月掩 SVG 输出 - 新增日月食及月掩全球投影图、时间标记和 GeoJSON 地理数据接口 - 扩展日食中心线、南北界及偏食足迹采样,支持极区投影 - 修正站心时角、月出月落、月球视半径、折射和恒星自行计算 - 优化内外行星事件搜索、边界选择、极端输入处理和计算稳定性
19 lines
756 B
Go
19 lines
756 B
Go
// Package geodata 提供与投影无关的地理拓扑辅助函数,用于 / Package geodata provides projection-neutral geographic topology helpers for
|
|
// 地图渲染器和传输编码器使用 / map renderers and transport encoders.
|
|
package geodata
|
|
|
|
// Projection 标识受支持的地图投影 / Projection identifies one of the supported map projections.
|
|
type Projection string
|
|
|
|
const (
|
|
ProjectionEquirectangular Projection = "equirectangular"
|
|
ProjectionNorthPolar Projection = "north-polar"
|
|
ProjectionSouthPolar Projection = "south-polar"
|
|
)
|
|
|
|
// GeoPoint 是以度表示的地理点,东经为正 / GeoPoint is a geographic point in degrees, with east longitude positive.
|
|
type GeoPoint struct {
|
|
Longitude float64
|
|
Latitude float64
|
|
}
|