![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
坐标系
那些乐趣
这个作者很懒,什么都没留下…
展开
-
wx.openLocation导航不准或者出现问题
wx.openLocation定位不准确,导致导航不正确,这是因为wx.openLocation方法传入的经度和纬度参数不正确,需要传入火星坐标,这样在导航的时候,选择百度,高德,腾讯等地图,微信会把火星坐标自动转成对应的坐标系坐标ios设备wx.openLocation定位有问题,需要把经度和纬度换成数字类型...原创 2021-11-25 10:58:54 · 1101 阅读 · 0 评论 -
wgs84坐标转百度坐标和高德坐标
wgs84转百度坐标代码://longi 经度 lati 纬度public Map<String,String> convertLatitudeAndLongitude(String longi,String lati){ String urlPrefix = "http://api.map.baidu.com/geoconv/v1/?coords="; String urlSuffixfix = "&from=1&to=原创 2021-11-16 11:40:21 · 7124 阅读 · 0 评论 -
度分秒地理位置转wgs84坐标和2000坐标,2000坐标转wgs84坐标
具体代码:public String save(PumpHouse pumpHouse, HttpServletRequest request, Model model, RedirectAttributes redirectAttributes) { if(StringUtils.isEmpty(pumpHouse.getId())){ pumpHouse.setUid(IdGen.uuid()); } if (!beanValidator(model, pumpHouse)){原创 2021-11-16 11:25:37 · 3167 阅读 · 0 评论 -
使用java geotools进行坐标转换
java geotools支持不同的坐标系之间进行转换,只需要转换的时候指定坐标系即可。pom依赖文件如下:<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http原创 2021-11-02 11:08:50 · 6354 阅读 · 0 评论 -
wgs84坐标系转化为中国大地坐标CGCS2000 / 3-degree Gauss-Kruger CM 120E
gps角分秒格式经纬度转double经纬度:getPosition方法private static String getPosition(String position){ String[] degree = position.split("\\°"); if(degree.length == 1){ return position; } String d = degree[0]; String[]原创 2021-10-29 15:24:46 · 3941 阅读 · 1 评论