Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java equivalent of OpenLayers [closed]

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 looks promising, but as far as I can tell there won't be Java bindings until "sometime" in the future.

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.

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...

like image 775
dave4351 Avatar asked Feb 03 '23 11:02

dave4351


1 Answers

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.

like image 137
David Winslow Avatar answered Feb 06 '23 16:02

David Winslow