相当于 OpenLayers 的 Java [英] Java equivalent of OpenLayers

查看:34
本文介绍了相当于 OpenLayers 的 Java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个 Java 库来显示来自各种来源的地图数据,包括 shapefile、WMS、WFS、Google Maps、可能是 ArcIMS 等.似乎 OpenLayers 是最接近我想要的东西,除了它是一个 JavaScript库,我正在编写一个 Swing 应用程序.

I am looking for a Java library to display map data from various sources, including shapefile, WMS, WFS, Google Maps, possibly ArcIMS, etc. It seems like OpenLayers is the closest thing to what I want, except it's a JavaScript library, and I'm writing a Swing application.

GDAL 看起来很有希望,但据我所知,在未来某个时候"之前不会有 Java 绑定.

GDAL looks promising, but as far as I can tell there won't be Java bindings until "sometime" in the future.

明确地说,我正在寻找一个 Java API,我可以用它来显示来自多个地图服务器/源的地图.

Just to be clear, I am looking for a single Java API that I can use to display maps from a number of map servers/sources.

有谁知道这样的事情是否存在,如果不存在,从哪里开始?我应该在 GeoTools 之上构建这个 API 吗?或者...

Does anyone know if anything like this exists, and if not, where to go from here? Should I build this API on top of GeoTools? Or...

推荐答案

GeoTools 是一个不错的选择.Google 地图服务条款禁止访问 Google 地图图块,除非通过(JavaScript) Google Maps API,因此您不太可能找到免费提供的代码库来在 Java 应用程序中访问它们.类似的限制可能适用于其他商业层.

GeoTools is a good bet for this. The Google Maps Terms of Service prohibit accessing Google Maps tiles except through the (JavaScript) Google Maps API, so it's not likely that you'll find a freely available codebase to access them in a Java application. Similar restrictions probably apply to other commercial layers.

这篇关于相当于 OpenLayers 的 Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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