<div dir="ltr"><div><div><div>Steve,<br><br></div>Replying off list, for what it&#39;s worth I&#39;m seeing the same issue with your data on Ubutu 12.04, Proj 4.8, mapserv 6.2.1 built from source. I rarely use web mercator in my work so I have limited experience with it and limited data. I notice that ogrinfo on your world_disolve reports:<br>
   Extent: (-180.000015, -90.000015) - (179.999985, 83.633385)<br></div>Have you tested with any other data?<br><br></div>Rich<br><br><div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Jan 2, 2014 at 7:43 AM, Stephen Woodbridge <span dir="ltr">&lt;<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 1/2/2014 9:13 AM, Richard Greenwood wrote:<br>
&gt; Are you sure that it&#39;s finding and using the correct epsg file? You<br>
&gt; could specify the full path to an epsg file in either the mapfile or the<br>
&gt; apache conf, or paste the proj parameters into the PROJ block in the<br>
&gt; mapfile and do away wit the epsg file completely.<br>
<br>
</div>It is a clean new system with only the Ubuntu package installed. I added<br>
900913 to the /usr/share/proj/epsg file. I also just modified the<br>
mapfile and entered the projection parameters in it directly as you<br>
suggested with the same result.<br>
<br>
If you want to try this, download <a href="http://imaptools.com:8080/dl/world.tbz" target="_blank">http://imaptools.com:8080/dl/world.tbz</a><br>
It resides in directory /u/data/ on my system so you would need to<br>
adjust the paths appropriately.<br>
<br>
I&#39;ve now spent 3 days fussing with this and trying to debug it. I<br>
suppose the next thing to try is to build proj4-4.6.0 on the Ubuntu<br>
system and see if that resolves the issue.<br>
<br>
Thanks,<br>
   -Steve<br>
<br>
Here is the mapfile:<br>
<br>
MAP<br>
   NAME &quot;World_WMS&quot;<br>
   STATUS ON<br>
   SIZE 800 800<br>
   #EXTENT -180 -90 180 90<br>
   EXTENT -20037508.34 -20037508.34  20037508.34  20037508.34<br>
   UNITS DD<br>
   SHAPEPATH &quot;/u/data/world/&quot;<br>
   IMAGECOLOR &quot;#80B1D3&quot;<br>
   FONTSET &quot;/u/data/world/fontset.txt&quot;<br>
   IMAGETYPE &quot;agg_qn&quot;<br>
   MAXSIZE 4000<br>
<br>
   CONFIG MS_ERRORFILE &quot;stderr&quot;<br>
   CONFIG ON_MISSING_DATA &quot;IGNORE&quot;<br>
   #DEBUG 10<br>
<br>
   OUTPUTFORMAT<br>
     NAME &quot;agg_qn&quot;<br>
     DRIVER &quot;AGG/PNG&quot;<br>
     EXTENSION &quot;png&quot;<br>
     MIMETYPE &quot;image/png&quot;<br>
     IMAGEMODE RGB<br>
     FORMATOPTION &quot;INTERLACE=false&quot;<br>
     FORMATOPTION &quot;QUANTIZE_NEW=ON&quot;<br>
     FORMATOPTION &quot;QUANTIZE_FORCE=ON&quot;<br>
     FORMATOPTION &quot;QUANTIZE_DITHER=OFF&quot;<br>
     FORMATOPTION &quot;QUANTIZE_COLORS=256&quot;<br>
   END<br>
<br>
   OUTPUTFORMAT<br>
     NAME aggpng24<br>
     DRIVER AGG/PNG<br>
     MIMETYPE &quot;image/png&quot;<br>
     IMAGEMODE RGB<br>
     EXTENSION &quot;png&quot;<br>
   END<br>
<br>
   WEB<br>
     METADATA<br>
       &quot;labelcache_map_edge_buffer&quot; &quot;-20&quot;<br>
       &quot;ows_title&quot; &quot;World_WMS&quot;<br>
       &quot;ows_onlineresource&quot;<br>
&quot;<a href="http://imaptools.com:8080/cgi-bin/mapserv?map=/u/data/world/world.map&amp;" target="_blank">http://imaptools.com:8080/cgi-bin/mapserv?map=/u/data/world/world.map&amp;</a>&quot;<br>
       &quot;ows_srs&quot; &quot;EPSG:4326 EPSG:900913 EPSG:4269 EPSG:3857&quot;<br>
       &quot;ows_feature_info_mime_type&quot; &quot;text/html&quot;<br>
       &quot;ows_enable_request&quot; &quot;GetMap&quot;<br>
       &quot;ows_contactperson&quot;     &quot;Stephen Woodbridge&quot;<br>
       &quot;ows_contactorganization&quot; &quot;iMaptools.com&quot;<br>
       &quot;ows_contactposition&quot;   &quot;Owner&quot;<br>
       &quot;ows_contactelectronicmailaddress&quot; &quot;<a href="mailto:info@imaptools.com">info@imaptools.com</a>&quot;<br>
       &quot;ows_attribution_title&quot;   &quot;Data copyright by LeadDog Consulting.&quot;<br>
     END<br>
   END<br>
<br>
#  PROJECTION &quot;init=epsg:4326&quot; END<br>
   PROJECTION &quot;+proj=lcc +lat_1=17.5 +lat_2=29.5 +lat_0=12 +lon_0=-102<br>
+x_0=2500000 +y_0=0 +datum=WGS84 +units=m +no_defs&quot; END<br>
<br>
   LAYER<br>
     STATUS DEFAULT<br>
     TYPE POLYGON<br>
     PROJECTION &quot;init=epsg:4326&quot; END<br>
     FEATURE<br>
         POINTS -180 -90 -180 90 180 90 180 -90 -180 -90 END<br>
     END<br>
     CLASS<br>
       STYLE<br>
         COLOR &quot;#80B1D3&quot;<br>
       END<br>
     END<br>
   END<br>
<br>
   LAYER<br>
     NAME &quot;World&quot;<br>
     GROUP &quot;cb&quot;<br>
     METADATA<br>
       ows_title &quot;World&quot;<br>
       ows_group_title &quot;Land Mass&quot;<br>
     END<br>
     STATUS ON<br>
     PROJECTION &quot;init=epsg:4326&quot; END<br>
     TYPE POLYGON<br>
     DATA &quot;world_dissolve&quot;<br>
     CLASS<br>
       STYLE<br>
         COLOR &quot;#CACACA&quot;<br>
         OUTLINECOLOR &quot;#888888&quot;<br>
       END<br>
     END<br>
   END<br>
<br>
END<br>
<div class="im"><br>
<br>
&gt; Rich<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Jan 1, 2014 at 9:47 AM, Stephen Woodbridge<br>
</div><div><div class="h5">&gt; &lt;<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a> &lt;mailto:<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hi All,<br>
&gt;<br>
&gt;     I&#39;m trying to run down a mapserver projection issue that is starting to<br>
&gt;     look like it might be the version of proj4. Sorry for the cross posting.<br>
&gt;<br>
&gt;     Situation:<br>
&gt;<br>
&gt;     I&#39;m upgrading my server from Debian Lenny to Ubuntu 12.04 LTS and world<br>
&gt;     maps on the Ubuntu system projected to Spherical Mercator are messed up<br>
&gt;     and worked fine on Debian. I get the same issue using mapserver 6.2.1 or<br>
&gt;     5.6.8 and the big difference other than the OS and packages is that<br>
&gt;     Ubuntu is using proj4-4.8.0 and the older Debian system is using<br>
&gt;     proj4-4.6.0<br>
&gt;<br>
&gt;     Is this a known issue? I can make the data mapfile available if that<br>
&gt;     helps.<br>
&gt;<br>
&gt;     System details below.<br>
&gt;<br>
&gt;     Any help would be appreciated.<br>
&gt;<br>
&gt;     Thanks,<br>
&gt;         -Steve<br>
&gt;<br>
&gt;     Ubuntu system:<br>
&gt;<br>
&gt;     <a href="http://imaptools.com:8080/cgi-bin/mapserv?MAP=%2Fu%2Fdata%2Fworld%2Fworld.map&amp;FORMAT=image%2Fpng&amp;LAYERS=World_WMS&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;SRS=EPSG%3A900913&amp;BBOX=-27395030.9325,-21524667.16125,27395030.9325,21524667.16125&amp;WIDTH=700&amp;HEIGHT=550" target="_blank">http://imaptools.com:8080/cgi-bin/mapserv?MAP=%2Fu%2Fdata%2Fworld%2Fworld.map&amp;FORMAT=image%2Fpng&amp;LAYERS=World_WMS&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;SRS=EPSG%3A900913&amp;BBOX=-27395030.9325,-21524667.16125,27395030.9325,21524667.16125&amp;WIDTH=700&amp;HEIGHT=550</a><br>

&gt;<br>
&gt;     /u/www/cgi-bin/mapserv -v<br>
&gt;     MapServer version 6.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ<br>
&gt;     SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO<br>
&gt;     SUPPORTS=SVG_SYMBOLS SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER<br>
&gt;     SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT<br>
&gt;     SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI<br>
&gt;     SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR<br>
&gt;     INPUT=GDAL INPUT=SHAPEFILE<br>
&gt;<br>
&gt;     libproj-dev/precise uptodate 4.8.0-3~precise2<br>
&gt;     libproj0/precise uptodate 4.8.0-3~precise2<br>
&gt;     proj-bin/precise uptodate 4.8.0-3~precise2<br>
&gt;     proj-data/precise uptodate 4.8.0-3~precise2<br>
&gt;<br>
&gt;     # Spherical Mercator projection<br>
&gt;     &lt;900913&gt; +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0<br>
&gt;     +x_0=0.0 +y_0=0 +k=1.0 +units=m +over +nadgrids=@null +no_defs  &lt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;     cgi-mapserver/precise uptodate 6.2.1-2~precise3<br>
&gt;     libmapserver/precise uptodate 6.2.1-2~precise3<br>
&gt;     mapserver-bin/precise uptodate 6.2.1-2~precise3<br>
&gt;<br>
&gt;     Linux mappy 3.8.0-33-generic #48~precise1-Ubuntu SMP Thu Oct 24 16:28:06<br>
&gt;     UTC 2013 x86_64 x86_64 x86_64 GNU/Linux<br>
&gt;<br>
&gt;     I also get the same result from:<br>
&gt;<br>
&gt;     /u/www/cgi-bin/mapserv-56 -v<br>
&gt;     MapServer version 5.6.8 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP<br>
&gt;     OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV<br>
&gt;     SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT<br>
&gt;     SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL<br>
&gt;     INPUT=SHAPEFILE<br>
&gt;<br>
&gt;     which was built from source also using the libproj packages above.<br>
&gt;<br>
&gt;     Debian Lenny system:<br>
&gt;<br>
&gt;     <a href="http://gis.imaptools.com/cgi-bin/mapserv-6.2?MAP=%2Fu%2Fdata%2Fworld%2Fworld.map&amp;FORMAT=image%2Fpng&amp;LAYERS=World_WMS&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;SRS=EPSG%3A900913&amp;BBOX=-27395030.9325,-21524667.16125,27395030.9325,21524667.16125&amp;WIDTH=700&amp;HEIGHT=550" target="_blank">http://gis.imaptools.com/cgi-bin/mapserv-6.2?MAP=%2Fu%2Fdata%2Fworld%2Fworld.map&amp;FORMAT=image%2Fpng&amp;LAYERS=World_WMS&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;STYLES=&amp;EXCEPTIONS=application%2Fvnd.ogc.se_inimage&amp;SRS=EPSG%3A900913&amp;BBOX=-27395030.9325,-21524667.16125,27395030.9325,21524667.16125&amp;WIDTH=700&amp;HEIGHT=550</a><br>

&gt;<br>
&gt;     proj/lenny uptodate 4.6.0-2<br>
&gt;<br>
&gt;     # Spherical Mercator - Google<br>
&gt;     &lt;900913&gt; +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0<br>
&gt;     +x_0=0.0 +y_0=0 +k=1.0 +units=m +over +nadgrids=@null +no_defs  &lt;&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt;     Linux <a href="http://gis.leaddog.com" target="_blank">gis.leaddog.com</a> &lt;<a href="http://gis.leaddog.com" target="_blank">http://gis.leaddog.com</a>&gt; 2.6.32-042stab081.8<br>
<div class="im">&gt;     #1 SMP Wed Oct 23 16:32:28 MSK<br>
&gt;     2013 x86_64 GNU/Linux<br>
&gt;<br>
&gt;     I built mapserver from source and I also get the same result from<br>
&gt;     mapserver-5.6.8 built from source.<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     Proj mailing list<br>
</div>&gt;     <a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a> &lt;mailto:<a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a>&gt;<br>
<div class="im">&gt;     <a href="http://lists.maptools.org/mailman/listinfo/proj" target="_blank">http://lists.maptools.org/mailman/listinfo/proj</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Richard Greenwood<br>
</div>&gt; <a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a> &lt;mailto:<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a>&gt;<br>
&gt; <a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a> &lt;<a href="http://www.greenwoodmap.com" target="_blank">http://www.greenwoodmap.com</a>&gt;<br>
<div class="HOEnZb"><div class="h5">&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Proj mailing list<br>
&gt; <a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a><br>
&gt; <a href="http://lists.maptools.org/mailman/listinfo/proj" target="_blank">http://lists.maptools.org/mailman/listinfo/proj</a><br>
&gt;<br>
<br>
_______________________________________________<br>
Proj mailing list<br>
<a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a><br>
<a href="http://lists.maptools.org/mailman/listinfo/proj" target="_blank">http://lists.maptools.org/mailman/listinfo/proj</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Richard Greenwood<br><a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a><br><a href="http://www.greenwoodmap.com">www.greenwoodmap.com</a>
</div>