Mercator projection map with Geoserver and Openlayers

I am trying to display a shape map of the world on my Geoserver with a Mercator projection. I tried declaring SRS on Geoserver and defining EPSG 3785 or 900913 forecasts in Openlayers without success. I also tried to re-shape the shapefile with ogr2ogr, but the result is slightly disabled.

Original: Original

Ancient: alt text

The command used here is:

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

I am new to this concept of technology and cartography. Any pointers would be greatly appreciated!

+6
geoserver openlayers shapefile proj4js mercator
source share
1 answer

The geoserver pointer for this is continuous map migration.

In geoserver 2.0.1+ and higher, this problem can be solved by running geoserver with the following JVM parameters:

 -DADVANCED_PROJECTION_HANDLING=true -DUSE_STREAMING_RENDERER=true 

In the upcoming geoservice 2.1.X, these settings are turned on by default.

Example image of a map projected in epsg: 900913

http://2.bp.blogspot.com/_0_xIiXP5xuY/S34-EuJPxAI/AAAAAAAAAKQ/Ez1_aMsRcHg/s1600/continents_900913.png

Additional information: http://geo-solutions.blogspot.com/2010/02/geoserver-continuous-map-wrapping.html

+7
source share

All Articles