[Proj] Mapserver Projection Issue

Stephen Woodbridge woodbri at swoodbridge.com
Wed Jan 1 11:47:38 EST 2014


Hi All,

I'm trying to run down a mapserver projection issue that is starting to 
look like it might be the version of proj4. Sorry for the cross posting.

Situation:

I'm upgrading my server from Debian Lenny to Ubuntu 12.04 LTS and world 
maps on the Ubuntu system projected to Spherical Mercator are messed up 
and worked fine on Debian. I get the same issue using mapserver 6.2.1 or 
5.6.8 and the big difference other than the OS and packages is that 
Ubuntu is using proj4-4.8.0 and the older Debian system is using proj4-4.6.0

Is this a known issue? I can make the data mapfile available if that helps.

System details below.

Any help would be appreciated.

Thanks,
   -Steve

Ubuntu system:

http://imaptools.com:8080/cgi-bin/mapserv?MAP=%2Fu%2Fdata%2Fworld%2Fworld.map&FORMAT=image%2Fpng&LAYERS=World_WMS&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-27395030.9325,-21524667.16125,27395030.9325,21524667.16125&WIDTH=700&HEIGHT=550

/u/www/cgi-bin/mapserv -v
MapServer version 6.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ 
SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO 
SUPPORTS=SVG_SYMBOLS SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT 
SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI 
SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR 
INPUT=GDAL INPUT=SHAPEFILE

libproj-dev/precise uptodate 4.8.0-3~precise2
libproj0/precise uptodate 4.8.0-3~precise2
proj-bin/precise uptodate 4.8.0-3~precise2
proj-data/precise uptodate 4.8.0-3~precise2

# Spherical Mercator projection
<900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 
+x_0=0.0 +y_0=0 +k=1.0 +units=m +over +nadgrids=@null +no_defs  <>


cgi-mapserver/precise uptodate 6.2.1-2~precise3
libmapserver/precise uptodate 6.2.1-2~precise3
mapserver-bin/precise uptodate 6.2.1-2~precise3

Linux mappy 3.8.0-33-generic #48~precise1-Ubuntu SMP Thu Oct 24 16:28:06 
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

I also get the same result from:

/u/www/cgi-bin/mapserv-56 -v
MapServer version 5.6.8 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV 
SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT 
SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL 
INPUT=SHAPEFILE

which was built from source also using the libproj packages above.

Debian Lenny system:

http://gis.imaptools.com/cgi-bin/mapserv-6.2?MAP=%2Fu%2Fdata%2Fworld%2Fworld.map&FORMAT=image%2Fpng&LAYERS=World_WMS&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-27395030.9325,-21524667.16125,27395030.9325,21524667.16125&WIDTH=700&HEIGHT=550

proj/lenny uptodate 4.6.0-2

# Spherical Mercator - Google
<900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 
+x_0=0.0 +y_0=0 +k=1.0 +units=m +over +nadgrids=@null +no_defs  <>


Linux gis.leaddog.com 2.6.32-042stab081.8 #1 SMP Wed Oct 23 16:32:28 MSK 
2013 x86_64 GNU/Linux

I built mapserver from source and I also get the same result from 
mapserver-5.6.8 built from source.



More information about the Proj mailing list