Mercator projection world map with Geoserver and Openlayers

Posted by bjax-bjax on Stack Overflow See other posts from Stack Overflow or by bjax-bjax
Published on 2010-12-16T17:50:05Z Indexed on 2011/01/11 13:53 UTC
Read the original article Hit count: 267

I'm trying to render a world map shapefile on my Geoserver with a Mercator projection. I've tried declaring the SRS on Geoserver and defining EPSG projections of 3785 or 900913 in Openlayers with no success. I've also tried to reproject the shapefile using ogr2ogr but the result is slightly off.

Original:Original

Converted: alt text

Here's the command used:

ogr2ogr -t_srs EPSG:3785 target.shp source.shp

I'm new to this technology & mapping concepts. Any pointers would be greatly appreciated!

© Stack Overflow or respective owner

Related posts about openlayers

Related posts about shapefile