DMS转Decimal转换器
DMS
Decimal
DMS
Decimal
DMS → Decimal 转换指南
📐 转换公式
// DMS ↔ Decimal Degrees conversion
// DMS format: DD°MM'SS.SS"[N/S/E/W]
// Decimal: DD.DDDDD°
// DMS → Decimal:
Decimal = Degrees + Minutes/60 + Seconds/3600
// Apply sign: N/E = positive, S/W = negative
// Decimal → DMS:
Degrees = floor(|Decimal|)
Minutes = floor((|Decimal| - Degrees) × 60)
Seconds = (|Decimal| - Degrees - Minutes/60) × 3600
Direction = Decimal >= 0 ? (lat ? 'N' : 'E') : (lat ? 'S' : 'W')
// Example:
// 40°26'46"N = 40 + 26/60 + 46/3600 = 40.446°N
// 79°58'56"W = -(79 + 58/60 + 56/3600) = -79.982°WDMS(度、分、秒)和十进制度数是表示地理坐标的两种常见格式。它们之间的转换是纯粹的数学运算,不涉及大地测量转换。
📋 操作步骤
- 在输入框中输入DMS坐标(纬度,经度,每行一对)
- 单击“转换”按钮,将坐标从DMS转换为Decimal
- 在输出框中查看转换后的Decimal坐标
- 复制结果或将其保存为XLSX文件以备后续使用
💡 技巧提示
- 转换前确保坐标在有效范围内
- 对于批量转换,每行输入一个坐标对
- 在目标平台上验证转换后的坐标样本
- 所有转换均在客户端执行,确保数据完全隐私