oracle操作之经纬度转换
来源:互联网 发布:学java有前途吗 编辑:程序博客网 时间:2024/06/06 05:19
一、度分秒转点度
select t.lon,substr(t.lon,0,instr(t.lon,'°')-1) ,substr(t.lon,instr(t.lon,'°')+1,instr(t.lon,'′')-instr(t.lon,'°')-1) ,
substr(t.lon,instr(t.lon,'′')+1,instr(t.lon,'″')-instr(t.lon,'′')-1) from mtr_wprd_station t;
select t.lat,substr(t.lat,0,instr(t.lat,'°')-1) ,
substr(t.lat,instr(t.lat,'°')+1,instr(t.lat,'′')-instr(t.lat,'°')-1) ,
substr(t.lat,instr(t.lat,'′')+1,instr(t.lat,'″')-instr(t.lat,'′')-1) from mtr_wprd_station t;
update mtr_wprd_station t set t.lon_decimal= substr(t.lon,0,instr(t.lon,'°')-1)
+substr(t.lon,instr(t.lon,'°')+1,instr(t.lon,'′')-instr(t.lon,'°')-1)/60
+substr(t.lon,instr(t.lon,'′')+1,instr(t.lon,'″')-instr(t.lon,'′')-1)/3600;
update mtr_wprd_station t set t.lat_decimal= substr(t.lat,0,instr(t.lat,'°')-1)
+substr(t.lat,instr(t.lat,'°')+1,instr(t.lat,'′')-instr(t.lat,'°')-1)/60
+substr(t.lat,instr(t.lat,'′')+1,instr(t.lat,'″')-instr(t.lat,'′')-1)/3600;
select t.lon_decimal from mtr_wprd_station t;
select t.lat_decimal from mtr_wprd_station t;
二、点度转度分秒
update STT_ASM_STATION_TMP_201503 t
set t.lon1 = trunc(t.lon),
t.lon2 = trunc((t.lon - trunc(t.lon)) * 60),
t.lon3 = trunc(((t.lon - trunc(t.lon)) * 60 - trunc((t.lon - trunc(t.lon)) * 60)) * 60);
update STT_ASM_STATION_TMP_201503 t
set t.lat1 = trunc(t.lat),
t.lat2 = trunc((t.lat - trunc(t.lat)) * 60),
t.lat3 = trunc(((t.lat - trunc(t.lat)) * 60 - trunc((t.lat - trunc(t.lat)) * 60)) * 60);
- oracle操作之经纬度转换
- 经纬度转换
- 经纬度转换
- 经纬度转换
- 经纬度转换
- ORACLE日期转换 操作
- Oracle之Date格式转换&日期时间间隔操作
- 经纬度编码转换
- 经纬度格式及转换
- 经纬度转换距离
- 数据库经纬度转换
- 经纬度格式转换--excle
- 经纬度、时分秒转换
- 经纬度转换接口
- 地址转换位经纬度
- 米转换经纬度
- 经纬度转换工具
- 经纬度坐标转换
- oracle:IMP-00013: 只有 DBA 才能导入由其他 DBA 导出的文件 解决
- fsaddga
- C++初始化列表相关问题
- iPad网页开发教程及规则
- 每天一个Linux命令-----mv
- oracle操作之经纬度转换
- 转自酷壳 gdb
- Oracle number数据类型
- GC日志分析工具汇总
- 进度度是在一张背影图片上绘制的,效果是让图片逐渐变色
- iOS判断设备屏幕尺寸、分辨率
- Android笔记-Linux Kernel Ftrace (Function Trace)解析
- gcc -pg 选项的使用. gprof使用介绍.
- JSF+Spring注入空指针异常