将WGS84的Java代码转换为Google地图的位置并返回 [英] Java code for WGS84 to Google map position and back

查看:130
本文介绍了将WGS84的Java代码转换为Google地图的位置并返回的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

搜索一些示例代码,用于将WGS84坐标系中的点转换为Google Maps(像素位置)中的地图位置,同样支持缩放级别。



如果代码评论得很好,那么它也可以用其他语言。



您也可以指向一个开源的Java项目:)

发现一些资源:

OpenLayer 实现。

JOSM 项目



出色的 Java地图投影库来自JH LABS。这是一个纯java PROJ.4端口。从WGS84投影到米。从这里开始,将米转换为像素是非常简单的。

解决方案

在mapki.com上为Java平铺实用程序代码(谷歌地图开发人员的极好资源)


Searching for some sample code for converting a point in WGS84 coordinate system to a map position in Google Maps (pixel position), also supporting zoom levels.

If the codes is well commented, then it can also be in some other language.

You can also point me to a open source Java project :)

Some resources found:

OpenLayer implementation.

JOSM project

Excellent Java Map Projection Library from JH LABS. This is a pure java PROJ.4 port. Does projection from WGS84 to meters. From there it's quite straightforward to convert meters to tile pixels.

解决方案

Tile utility code in Java on mapki.com (great resource for google map developers)

这篇关于将WGS84的Java代码转换为Google地图的位置并返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆