Java 简单 WGS84 纬度到像素 X、Y

发布于 2024-09-01 02:05:00 字数 256 浏览 2 评论 0原文

我今天阅读了大量有关地图投影的信息。可用的信息量是巨大的。

我试图简单地将纬度、经度值转换为屏幕 X、Y 坐标,而不使用任何地图。我不需要将值投影到任何地图上,只需投影到窗口上即可。

窗口本身代表大约。 1500x1500 米的位置。所需的纬度、经度精度为 1/10 秒。

将纬度/经度表示转换为屏幕可能有哪些更简单的方法?

我读过几篇关于图像翻译的文章和帖子,但没有与自然 java 坐标系相关。

感谢您的任何见解。

I've read a multitude of information regarding map projection today. The amount of information available is overwhelming.

I am attempting to simply convert lat, long values into a screen X, Y coordinate not using any map. I do not need the values projected onto any map, just on the window.

The window itself is representing approx. a 1500x1500 meter location. Lat, Long accuracy needed is to a 1/10th of a second.

What may be some simpler ways in converting lat/long representation to the screen?

I've read several articles and post regarding translation onto images, but nothing related to the natural java coordinate system.

Thanks for any insight.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吖咩 2024-09-08 02:05:00

当投影到屏幕时,您仍然投影到“地图”,因此这实际上取决于您的地图投影是什么。但是,如果您仅在 1500x1500 米这样的小区域中工作,则可以使用简单的笛卡尔投影,其中每个像素都是等量的空间(即,如果您的屏幕是 1500 像素,则每个像素代表 1 米) )。但是,您仍然需要考虑您在地球上的位置,因为度数的长度(纬度和经度)可能会根据您所在的位置而有很大差异。如果您正在处理固定区域,您应该能够查找该点 1 度的长度。

When projecting to a screen, you still are projecting to a "map", so it really depends on what your map projection is. However, if you're only working in such a small area of 1500x1500 meters, you can use a simple Cartesian projection, where each pixel is an equal amount of space (i.e. if your screen is 1500 pixels, then each pixel would represent 1 meter). However, you still need to account for where you are on the earth since the length of a degree (in both latitude and longitude) can vary greatly depending on where you are. If you are working with a fixed area, you should be able to lookup the length of 1 degree at that point.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文