相当于Java中的OpenLayers [英] Java equivalent of OpenLayers
问题描述
我要寻找一个Java库,以显示各种来源,包括shape文件,WMS,WFS,谷歌地图,可能的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是一个很好的选择。谷歌地图服务条款禁止访问,除非通过谷歌地图图块(JavaScript)的谷歌地图API,所以它不太可能,你会发现一个免费的codeBase的访问它们在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.
这篇关于相当于Java中的OpenLayers的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!