2

I am starting a new GIS project in Java. Till now, I used JTS and geotools to load shape files - these data were then displayed on a swing interface. For this new project, I would like to use OSM data. I am wondering what is the most efficient way to start.

What I am dreaming on is a simple and light open source java viewer that would be able to load and display OSM data in both vector and raster format, and that I could extend for my project.

Does it exist?

3 Answers 3

1

If you want to use a all-Java web mapping framework, you may want to take a look at Geomajas. It has a plug-in to display OpenStreetMap raster data. If you want to odisplay the vector data as well, then you first have to download that and store it in a database (Postgis is a good choice). This can then be accessed either using the Geotools or the Hibernate layer.

1

From what I can tell, Geotools can not handle OSM data natively, but you could add the data to Postgis. Geotools as well as other mapping api's should have the ability to interact with PostGIS. Another option is to set up Geoserver and add a wms layer to your app.

Finally one option is to use openmap and write your own layer. You may also be able to do this with Geotools.

1
  • 1
    If you want to write an OSM datastore for GeoTools then you may want to start with docs.codehaus.org/display/GEOTDOC/… (I can't find a "new" one). Ask on the devel list for more help.
    – Ian Turton
    Commented Sep 24, 2010 at 14:24
1

I assume that you are familiar with JOSM, the Java-based OSM editor. If not, you may want to check it out.

All code is licensed under GPL2 or GPL3.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.