[OSM-dev] Customizing map for wikivoyage.org

Florian Lohoff flo at rfc822.org
Sat Jul 4 13:32:20 BST 2009


On Sat, Jul 04, 2009 at 12:58:50PM +0200, Hans Musil wrote:
> Here are my first questions, also posted to 
> http://wiki.openstreetmap.org/wiki/Talk:Osmosis#What_Java_distributions_will_work.3F
> 
> Is there any benefit from using PostGIS instead of PostgreSQL without 
> PostGIS? I do ask this because I have experienced several oddities when 
> experimenting with PostGIS before.
> 
> As far a I see, getting osmosis running is vital for importing the 
> planet.osm file into the database. I freely admit that java is not my 
> favourit language. We run Debian Lenny on our server and there is a 
> confusing choice of Java distros: openJDK, gcj or sun-jdk. Could you 
> give me a hint which of them would be the best to install?

For rendering the map with mapnik you'll need a different db schema
than the one produced with osmosis. Have a look at osm2pgsql and 
yes - you'll need the postgis extension.

The problem with the different projection will be that you'll need
to modify the sql queries made in the mapnik xml to reproject
to a different projection. IIRC the default osm2pgsql imports
with is ESRI:900913 aka google/mercator.

Flo
-- 
Florian Lohoff                  flo at rfc822.org             +49-171-2280134
	Those who would give up a little freedom to get a little 
          security shall soon have neither - Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20090704/25dfa007/attachment.pgp>


More information about the dev mailing list