Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
add comment

2 Answers 2

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]: wiki.openstreetmap.org/wiki/WMS#OSM_WMS_Servers –  Harry Wood Feb 8 '12 at 16:09
add comment

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 http://ian01.geog.psu.edu/geoserver_docs/data/openstreetmap/index.html.

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

share|improve this answer
add comment

Your Answer

 
discard

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.