Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm new at GIS. I am trying to make a java application that can display a map with certain points. I have achieved this using the geotools library. However, I want to put the map from OpenStreetMap or Google Streets in the background also. I already know that PostGIS can be used with GeoTools. However I don't know where to start. How is the best way to start once I have installed PostGIS?

Hello, I have also come across KML. I'm sorry I'm a beginner. What KML parsing mean, and how can I use this to show a map in my Java Application?

share|improve this question
Welcome to GIS.SE @meebee. Please use correct upper and lower case when writing your questions. You are asking for other people's help. Make it easier for them to read your text. – underdark Feb 3 '12 at 7:59
Hello, I edited my post. Do you have any suggestions on where I can start? – meebee Feb 3 '12 at 11:25

You'll need to add a WMS layer for your background map. The GeoTools tutorial has sections on adding WMS layers and querying databases (Example uses a PostGIS database). You might want to check them out.

share|improve this answer
And there are [some WMS servers available serving up rendered OpenStreetMap maps][1] (with varying terms and conditions involved) [1]: – Harry Wood Feb 8 '12 at 16:09

If your question is "how do I put OSM data into PostGIS so that GeoTools can read it?" then I wrote up some notes on this last year at

Once the data is in PostGIS then R.K's links should help you access it using GeoTools.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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