<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 2, 2014 at 11:30 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 10:21 AM, Richard Greenwood wrote:<br>
&gt; Steve,<br>
&gt;<br>
&gt; Replying off list, for what it&#39;s worth I&#39;m seeing the same issue with<br>
&gt; your data on Ubutu 12.04, Proj 4.8, mapserv 6.2.1 built from source. I<br>
&gt; rarely use web mercator in my work so I have limited experience with it<br>
&gt; and limited data. I notice that ogrinfo on your world_disolve reports:<br>
&gt;     Extent: (-180.000015, -90.000015) - (179.999985, 83.633385)<br>
<br>
</div>Hmmm, these values might be a problem: -180.000015, -90.000015<br>
I&#39;ll load that into postgis and see if I can fiddle with these and if<br>
that makes a difference.<br>
<br>
Thank you for your time and effort.<br>
<div class="im"><br>
&gt; Have you tested with any other data?<br>
<br>
</div>I got similar results using the Natural Earth data.<br></blockquote><div><br> </div><div class="im"><br></div><div class="im">Did you see my second reply (which actually was off list)? I think the problem is in the data because with just the USA &amp; Canada it rendered correctly but adding Russia and Greenland caused the rendering issues to reappear.<br>
<br></div><div class="im">Keep us posted.<br><br></div><div class="im">Rich<br></div><div class="im"><br><br><br>&gt; On Thu, Jan 2, 2014 at 7:43 AM, Stephen Woodbridge<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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;     On 1/2/2014 9:13 AM, Richard Greenwood wrote:<br>
&gt;      &gt; Are you sure that it&#39;s finding and using the correct epsg file? You<br>
&gt;      &gt; could specify the full path to an epsg file in either the mapfile<br>
&gt;     or the<br>
&gt;      &gt; apache conf, or paste the proj parameters into the PROJ block in the<br>
&gt;      &gt; mapfile and do away wit the epsg file completely.<br>
&gt;<br>
&gt;     It is a clean new system with only the Ubuntu package installed. I added<br>
&gt;     900913 to the /usr/share/proj/epsg file. I also just modified the<br>
&gt;     mapfile and entered the projection parameters in it directly as you<br>
&gt;     suggested with the same result.<br>
&gt;<br>
&gt;     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>
&gt;     It resides in directory /u/data/ on my system so you would need to<br>
&gt;     adjust the paths appropriately.<br>
&gt;<br>
&gt;     I&#39;ve now spent 3 days fussing with this and trying to debug it. I<br>
&gt;     suppose the next thing to try is to build proj4-4.6.0 on the Ubuntu<br>
&gt;     system and see if that resolves the issue.<br>
&gt;<br>
&gt;     Thanks,<br>
&gt;         -Steve<br>
&gt;<br>
&gt;     Here is the mapfile:<br>
&gt;<br>
&gt;     MAP<br>
&gt;         NAME &quot;World_WMS&quot;<br>
&gt;         STATUS ON<br>
&gt;         SIZE 800 800<br>
&gt;         #EXTENT -180 -90 180 90<br>
&gt;         EXTENT -20037508.34 -20037508.34  20037508.34  20037508.34<br>
&gt;         UNITS DD<br>
&gt;         SHAPEPATH &quot;/u/data/world/&quot;<br>
&gt;         IMAGECOLOR &quot;#80B1D3&quot;<br>
&gt;         FONTSET &quot;/u/data/world/fontset.txt&quot;<br>
&gt;         IMAGETYPE &quot;agg_qn&quot;<br>
&gt;         MAXSIZE 4000<br>
&gt;<br>
&gt;         CONFIG MS_ERRORFILE &quot;stderr&quot;<br>
&gt;         CONFIG ON_MISSING_DATA &quot;IGNORE&quot;<br>
&gt;         #DEBUG 10<br>
&gt;<br>
&gt;         OUTPUTFORMAT<br>
&gt;           NAME &quot;agg_qn&quot;<br>
&gt;           DRIVER &quot;AGG/PNG&quot;<br>
&gt;           EXTENSION &quot;png&quot;<br>
&gt;           MIMETYPE &quot;image/png&quot;<br>
&gt;           IMAGEMODE RGB<br>
&gt;           FORMATOPTION &quot;INTERLACE=false&quot;<br>
&gt;           FORMATOPTION &quot;QUANTIZE_NEW=ON&quot;<br>
&gt;           FORMATOPTION &quot;QUANTIZE_FORCE=ON&quot;<br>
&gt;           FORMATOPTION &quot;QUANTIZE_DITHER=OFF&quot;<br>
&gt;           FORMATOPTION &quot;QUANTIZE_COLORS=256&quot;<br>
&gt;         END<br>
&gt;<br>
&gt;         OUTPUTFORMAT<br>
&gt;           NAME aggpng24<br>
&gt;           DRIVER AGG/PNG<br>
&gt;           MIMETYPE &quot;image/png&quot;<br>
&gt;           IMAGEMODE RGB<br>
&gt;           EXTENSION &quot;png&quot;<br>
&gt;         END<br>
&gt;<br>
&gt;         WEB<br>
&gt;           METADATA<br>
&gt;             &quot;labelcache_map_edge_buffer&quot; &quot;-20&quot;<br>
&gt;             &quot;ows_title&quot; &quot;World_WMS&quot;<br>
&gt;             &quot;ows_onlineresource&quot;<br>
&gt;     &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>
&gt;             &quot;ows_srs&quot; &quot;EPSG:4326 EPSG:900913 EPSG:4269 EPSG:3857&quot;<br>
&gt;             &quot;ows_feature_info_mime_type&quot; &quot;text/html&quot;<br>
&gt;             &quot;ows_enable_request&quot; &quot;GetMap&quot;<br>
&gt;             &quot;ows_contactperson&quot;     &quot;Stephen Woodbridge&quot;<br>
&gt;             &quot;ows_contactorganization&quot; &quot;iMaptools.com&quot;<br>
&gt;             &quot;ows_contactposition&quot;   &quot;Owner&quot;<br>
&gt;             &quot;ows_contactelectronicmailaddress&quot; &quot;<a href="mailto:info@imaptools.com">info@imaptools.com</a><br>
</div></div>&gt;     &lt;mailto:<a href="mailto:info@imaptools.com">info@imaptools.com</a>&gt;&quot;<br>
<div><div class="h5">&gt;             &quot;ows_attribution_title&quot;   &quot;Data copyright by LeadDog<br>
&gt;     Consulting.&quot;<br>
&gt;           END<br>
&gt;         END<br>
&gt;<br>
&gt;     #  PROJECTION &quot;init=epsg:4326&quot; END<br>
&gt;         PROJECTION &quot;+proj=lcc +lat_1=17.5 +lat_2=29.5 +lat_0=12 +lon_0=-102<br>
&gt;     +x_0=2500000 +y_0=0 +datum=WGS84 +units=m +no_defs&quot; END<br>
&gt;<br>
&gt;         LAYER<br>
&gt;           STATUS DEFAULT<br>
&gt;           TYPE POLYGON<br>
&gt;           PROJECTION &quot;init=epsg:4326&quot; END<br>
&gt;           FEATURE<br>
&gt;               POINTS -180 -90 -180 90 180 90 180 -90 -180 -90 END<br>
&gt;           END<br>
&gt;           CLASS<br>
&gt;             STYLE<br>
&gt;               COLOR &quot;#80B1D3&quot;<br>
&gt;             END<br>
&gt;           END<br>
&gt;         END<br>
&gt;<br>
&gt;         LAYER<br>
&gt;           NAME &quot;World&quot;<br>
&gt;           GROUP &quot;cb&quot;<br>
&gt;           METADATA<br>
&gt;             ows_title &quot;World&quot;<br>
&gt;             ows_group_title &quot;Land Mass&quot;<br>
&gt;           END<br>
&gt;           STATUS ON<br>
&gt;           PROJECTION &quot;init=epsg:4326&quot; END<br>
&gt;           TYPE POLYGON<br>
&gt;           DATA &quot;world_dissolve&quot;<br>
&gt;           CLASS<br>
&gt;             STYLE<br>
&gt;               COLOR &quot;#CACACA&quot;<br>
&gt;               OUTLINECOLOR &quot;#888888&quot;<br>
&gt;             END<br>
&gt;           END<br>
&gt;         END<br>
&gt;<br>
&gt;     END<br>
&gt;<br>
&gt;<br>
&gt;      &gt; Rich<br>
&gt;      &gt;<br>
&gt;      &gt;<br>
&gt;      &gt; On Wed, Jan 1, 2014 at 9:47 AM, Stephen Woodbridge<br>
&gt;      &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;<br>
</div></div>&gt;     &lt;mailto:<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a> &lt;mailto:<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>&gt;&gt;&gt;<br>
<div><div class="h5">&gt;     wrote:<br>
&gt;      &gt;<br>
&gt;      &gt;     Hi All,<br>
&gt;      &gt;<br>
&gt;      &gt;     I&#39;m trying to run down a mapserver projection issue that is<br>
&gt;     starting to<br>
&gt;      &gt;     look like it might be the version of proj4. Sorry for the<br>
&gt;     cross posting.<br>
&gt;      &gt;<br>
&gt;      &gt;     Situation:<br>
&gt;      &gt;<br>
&gt;      &gt;     I&#39;m upgrading my server from Debian Lenny to Ubuntu 12.04 LTS<br>
&gt;     and world<br>
&gt;      &gt;     maps on the Ubuntu system projected to Spherical Mercator are<br>
&gt;     messed up<br>
&gt;      &gt;     and worked fine on Debian. I get the same issue using<br>
&gt;     mapserver 6.2.1 or<br>
&gt;      &gt;     5.6.8 and the big difference other than the OS and packages<br>
&gt;     is that<br>
&gt;      &gt;     Ubuntu is using proj4-4.8.0 and the older Debian system is using<br>
&gt;      &gt;     proj4-4.6.0<br>
&gt;      &gt;<br>
&gt;      &gt;     Is this a known issue? I can make the data mapfile available<br>
&gt;     if that<br>
&gt;      &gt;     helps.<br>
&gt;      &gt;<br>
&gt;      &gt;     System details below.<br>
&gt;      &gt;<br>
&gt;      &gt;     Any help would be appreciated.<br>
&gt;      &gt;<br>
&gt;      &gt;     Thanks,<br>
&gt;      &gt;         -Steve<br>
&gt;      &gt;<br>
&gt;      &gt;     Ubuntu system:<br>
&gt;      &gt;<br>
&gt;      &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;      &gt;<br>
&gt;      &gt;     /u/www/cgi-bin/mapserv -v<br>
&gt;      &gt;     MapServer version 6.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG<br>
&gt;     SUPPORTS=PROJ<br>
&gt;      &gt;     SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO<br>
&gt;      &gt;     SUPPORTS=SVG_SYMBOLS SUPPORTS=ICONV SUPPORTS=FRIBIDI<br>
&gt;     SUPPORTS=WMS_SERVER<br>
&gt;      &gt;     SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT<br>
&gt;      &gt;     SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI<br>
&gt;      &gt;     SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR<br>
&gt;      &gt;     INPUT=GDAL INPUT=SHAPEFILE<br>
&gt;      &gt;<br>
&gt;      &gt;     libproj-dev/precise uptodate 4.8.0-3~precise2<br>
&gt;      &gt;     libproj0/precise uptodate 4.8.0-3~precise2<br>
&gt;      &gt;     proj-bin/precise uptodate 4.8.0-3~precise2<br>
&gt;      &gt;     proj-data/precise uptodate 4.8.0-3~precise2<br>
&gt;      &gt;<br>
&gt;      &gt;     # Spherical Mercator projection<br>
&gt;      &gt;     &lt;900913&gt; +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0<br>
&gt;      &gt;     +x_0=0.0 +y_0=0 +k=1.0 +units=m +over +nadgrids=@null<br>
&gt;     +no_defs  &lt;&gt;<br>
&gt;      &gt;<br>
&gt;      &gt;<br>
&gt;      &gt;     cgi-mapserver/precise uptodate 6.2.1-2~precise3<br>
&gt;      &gt;     libmapserver/precise uptodate 6.2.1-2~precise3<br>
&gt;      &gt;     mapserver-bin/precise uptodate 6.2.1-2~precise3<br>
&gt;      &gt;<br>
&gt;      &gt;     Linux mappy 3.8.0-33-generic #48~precise1-Ubuntu SMP Thu Oct<br>
&gt;     24 16:28:06<br>
&gt;      &gt;     UTC 2013 x86_64 x86_64 x86_64 GNU/Linux<br>
&gt;      &gt;<br>
&gt;      &gt;     I also get the same result from:<br>
&gt;      &gt;<br>
&gt;      &gt;     /u/www/cgi-bin/mapserv-56 -v<br>
&gt;      &gt;     MapServer version 5.6.8 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG<br>
&gt;     OUTPUT=WBMP<br>
&gt;      &gt;     OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE<br>
&gt;     SUPPORTS=ICONV<br>
&gt;      &gt;     SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT<br>
&gt;      &gt;     SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR<br>
&gt;     INPUT=GDAL<br>
&gt;      &gt;     INPUT=SHAPEFILE<br>
&gt;      &gt;<br>
&gt;      &gt;     which was built from source also using the libproj packages<br>
&gt;     above.<br>
&gt;      &gt;<br>
&gt;      &gt;     Debian Lenny system:<br>
&gt;      &gt;<br>
&gt;      &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;      &gt;<br>
&gt;      &gt;     proj/lenny uptodate 4.6.0-2<br>
&gt;      &gt;<br>
&gt;      &gt;     # Spherical Mercator - Google<br>
&gt;      &gt;     &lt;900913&gt; +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0<br>
&gt;      &gt;     +x_0=0.0 +y_0=0 +k=1.0 +units=m +over +nadgrids=@null<br>
&gt;     +no_defs  &lt;&gt;<br>
&gt;      &gt;<br>
&gt;      &gt;<br>
&gt;      &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;<br>
&gt;     &lt;<a href="http://gis.leaddog.com" target="_blank">http://gis.leaddog.com</a>&gt; 2.6.32-042stab081.8<br>
&gt;      &gt;     #1 SMP Wed Oct 23 16:32:28 MSK<br>
&gt;      &gt;     2013 x86_64 GNU/Linux<br>
&gt;      &gt;<br>
&gt;      &gt;     I built mapserver from source and I also get the same result from<br>
&gt;      &gt;     mapserver-5.6.8 built from source.<br>
&gt;      &gt;<br>
&gt;      &gt;     _______________________________________________<br>
&gt;      &gt;     Proj mailing list<br>
&gt;      &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></div>&gt;     &lt;mailto:<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;&gt;<br>
<div class="im">&gt;      &gt; <a href="http://lists.maptools.org/mailman/listinfo/proj" target="_blank">http://lists.maptools.org/mailman/listinfo/proj</a><br>
&gt;      &gt;<br>
&gt;      &gt;<br>
&gt;      &gt;<br>
&gt;      &gt;<br>
&gt;      &gt; --<br>
&gt;      &gt; Richard Greenwood<br>
&gt;      &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>
</div>&gt;     &lt;mailto:<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a><br>
<div class="im">&gt;     &lt;mailto:<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a>&gt;&gt;<br>
&gt;      &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>
&gt;     &lt;<a href="http://www.greenwoodmap.com" target="_blank">http://www.greenwoodmap.com</a>&gt;<br>
&gt;      &gt;<br>
&gt;      &gt;<br>
&gt;      &gt; _______________________________________________<br>
&gt;      &gt; Proj mailing list<br>
</div>&gt;      &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="HOEnZb"><div class="h5">&gt;      &gt; <a href="http://lists.maptools.org/mailman/listinfo/proj" target="_blank">http://lists.maptools.org/mailman/listinfo/proj</a><br>
&gt;      &gt;<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     Proj mailing list<br>
&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>
&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>
&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>
&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></div>