<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"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></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>
> Steve,<br>
><br>
> Replying off list, for what it's worth I'm seeing the same issue with<br>
> your data on Ubutu 12.04, Proj 4.8, mapserv 6.2.1 built from source. I<br>
> rarely use web mercator in my work so I have limited experience with it<br>
> and limited data. I notice that ogrinfo on your world_disolve reports:<br>
> 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'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>
> 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 & 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>> 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">> <<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a> <mailto:<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>>> wrote:<br>
><br>
> On 1/2/2014 9:13 AM, Richard Greenwood wrote:<br>
> > Are you sure that it's finding and using the correct epsg file? You<br>
> > could specify the full path to an epsg file in either the mapfile<br>
> or the<br>
> > apache conf, or paste the proj parameters into the PROJ block in the<br>
> > mapfile and do away wit the epsg file completely.<br>
><br>
> 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'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 "World_WMS"<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 "/u/data/world/"<br>
> IMAGECOLOR "#80B1D3"<br>
> FONTSET "/u/data/world/fontset.txt"<br>
> IMAGETYPE "agg_qn"<br>
> MAXSIZE 4000<br>
><br>
> CONFIG MS_ERRORFILE "stderr"<br>
> CONFIG ON_MISSING_DATA "IGNORE"<br>
> #DEBUG 10<br>
><br>
> OUTPUTFORMAT<br>
> NAME "agg_qn"<br>
> DRIVER "AGG/PNG"<br>
> EXTENSION "png"<br>
> MIMETYPE "image/png"<br>
> IMAGEMODE RGB<br>
> FORMATOPTION "INTERLACE=false"<br>
> FORMATOPTION "QUANTIZE_NEW=ON"<br>
> FORMATOPTION "QUANTIZE_FORCE=ON"<br>
> FORMATOPTION "QUANTIZE_DITHER=OFF"<br>
> FORMATOPTION "QUANTIZE_COLORS=256"<br>
> END<br>
><br>
> OUTPUTFORMAT<br>
> NAME aggpng24<br>
> DRIVER AGG/PNG<br>
> MIMETYPE "image/png"<br>
> IMAGEMODE RGB<br>
> EXTENSION "png"<br>
> END<br>
><br>
> WEB<br>
> METADATA<br>
> "labelcache_map_edge_buffer" "-20"<br>
> "ows_title" "World_WMS"<br>
> "ows_onlineresource"<br>
> "<a href="http://imaptools.com:8080/cgi-bin/mapserv?map=/u/data/world/world.map&" target="_blank">http://imaptools.com:8080/cgi-bin/mapserv?map=/u/data/world/world.map&</a>"<br>
> "ows_srs" "EPSG:4326 EPSG:900913 EPSG:4269 EPSG:3857"<br>
> "ows_feature_info_mime_type" "text/html"<br>
> "ows_enable_request" "GetMap"<br>
> "ows_contactperson" "Stephen Woodbridge"<br>
> "ows_contactorganization" "iMaptools.com"<br>
> "ows_contactposition" "Owner"<br>
> "ows_contactelectronicmailaddress" "<a href="mailto:info@imaptools.com">info@imaptools.com</a><br>
</div></div>> <mailto:<a href="mailto:info@imaptools.com">info@imaptools.com</a>>"<br>
<div><div class="h5">> "ows_attribution_title" "Data copyright by LeadDog<br>
> Consulting."<br>
> END<br>
> END<br>
><br>
> # PROJECTION "init=epsg:4326" END<br>
> PROJECTION "+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" END<br>
><br>
> LAYER<br>
> STATUS DEFAULT<br>
> TYPE POLYGON<br>
> PROJECTION "init=epsg:4326" END<br>
> FEATURE<br>
> POINTS -180 -90 -180 90 180 90 180 -90 -180 -90 END<br>
> END<br>
> CLASS<br>
> STYLE<br>
> COLOR "#80B1D3"<br>
> END<br>
> END<br>
> END<br>
><br>
> LAYER<br>
> NAME "World"<br>
> GROUP "cb"<br>
> METADATA<br>
> ows_title "World"<br>
> ows_group_title "Land Mass"<br>
> END<br>
> STATUS ON<br>
> PROJECTION "init=epsg:4326" END<br>
> TYPE POLYGON<br>
> DATA "world_dissolve"<br>
> CLASS<br>
> STYLE<br>
> COLOR "#CACACA"<br>
> OUTLINECOLOR "#888888"<br>
> END<br>
> END<br>
> END<br>
><br>
> END<br>
><br>
><br>
> > Rich<br>
> ><br>
> ><br>
> > On Wed, Jan 1, 2014 at 9:47 AM, Stephen Woodbridge<br>
> > <<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a> <mailto:<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>><br>
</div></div>> <mailto:<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a> <mailto:<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>>>><br>
<div><div class="h5">> wrote:<br>
> ><br>
> > Hi All,<br>
> ><br>
> > I'm trying to run down a mapserver projection issue that is<br>
> starting to<br>
> > look like it might be the version of proj4. Sorry for the<br>
> cross posting.<br>
> ><br>
> > Situation:<br>
> ><br>
> > I'm upgrading my server from Debian Lenny to Ubuntu 12.04 LTS<br>
> and world<br>
> > maps on the Ubuntu system projected to Spherical Mercator are<br>
> messed up<br>
> > and worked fine on Debian. I get the same issue using<br>
> mapserver 6.2.1 or<br>
> > 5.6.8 and the big difference other than the OS and packages<br>
> is that<br>
> > Ubuntu is using proj4-4.8.0 and the older Debian system is using<br>
> > proj4-4.6.0<br>
> ><br>
> > Is this a known issue? I can make the data mapfile available<br>
> if that<br>
> > helps.<br>
> ><br>
> > System details below.<br>
> ><br>
> > Any help would be appreciated.<br>
> ><br>
> > Thanks,<br>
> > -Steve<br>
> ><br>
> > Ubuntu system:<br>
> ><br>
> ><br>
> <a href="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" target="_blank">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</a><br>
> ><br>
> > /u/www/cgi-bin/mapserv -v<br>
> > MapServer version 6.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG<br>
> SUPPORTS=PROJ<br>
> > SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO<br>
> > SUPPORTS=SVG_SYMBOLS SUPPORTS=ICONV SUPPORTS=FRIBIDI<br>
> SUPPORTS=WMS_SERVER<br>
> > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT<br>
> > SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI<br>
> > SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR<br>
> > INPUT=GDAL INPUT=SHAPEFILE<br>
> ><br>
> > libproj-dev/precise uptodate 4.8.0-3~precise2<br>
> > libproj0/precise uptodate 4.8.0-3~precise2<br>
> > proj-bin/precise uptodate 4.8.0-3~precise2<br>
> > proj-data/precise uptodate 4.8.0-3~precise2<br>
> ><br>
> > # Spherical Mercator projection<br>
> > <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0<br>
> > +x_0=0.0 +y_0=0 +k=1.0 +units=m +over +nadgrids=@null<br>
> +no_defs <><br>
> ><br>
> ><br>
> > cgi-mapserver/precise uptodate 6.2.1-2~precise3<br>
> > libmapserver/precise uptodate 6.2.1-2~precise3<br>
> > mapserver-bin/precise uptodate 6.2.1-2~precise3<br>
> ><br>
> > Linux mappy 3.8.0-33-generic #48~precise1-Ubuntu SMP Thu Oct<br>
> 24 16:28:06<br>
> > UTC 2013 x86_64 x86_64 x86_64 GNU/Linux<br>
> ><br>
> > I also get the same result from:<br>
> ><br>
> > /u/www/cgi-bin/mapserv-56 -v<br>
> > MapServer version 5.6.8 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG<br>
> OUTPUT=WBMP<br>
> > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE<br>
> SUPPORTS=ICONV<br>
> > SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT<br>
> > SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR<br>
> INPUT=GDAL<br>
> > INPUT=SHAPEFILE<br>
> ><br>
> > which was built from source also using the libproj packages<br>
> above.<br>
> ><br>
> > Debian Lenny system:<br>
> ><br>
> ><br>
> <a href="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" target="_blank">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</a><br>
> ><br>
> > proj/lenny uptodate 4.6.0-2<br>
> ><br>
> > # Spherical Mercator - Google<br>
> > <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0<br>
> > +x_0=0.0 +y_0=0 +k=1.0 +units=m +over +nadgrids=@null<br>
> +no_defs <><br>
> ><br>
> ><br>
> > Linux <a href="http://gis.leaddog.com" target="_blank">gis.leaddog.com</a> <<a href="http://gis.leaddog.com" target="_blank">http://gis.leaddog.com</a>><br>
> <<a href="http://gis.leaddog.com" target="_blank">http://gis.leaddog.com</a>> 2.6.32-042stab081.8<br>
> > #1 SMP Wed Oct 23 16:32:28 MSK<br>
> > 2013 x86_64 GNU/Linux<br>
> ><br>
> > I built mapserver from source and I also get the same result from<br>
> > mapserver-5.6.8 built from source.<br>
> ><br>
> > _______________________________________________<br>
> > Proj mailing list<br>
> > <a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a> <mailto:<a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a>><br>
</div></div>> <mailto:<a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a> <mailto:<a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a>>><br>
<div class="im">> > <a href="http://lists.maptools.org/mailman/listinfo/proj" target="_blank">http://lists.maptools.org/mailman/listinfo/proj</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Richard Greenwood<br>
> > <a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a> <mailto:<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a>><br>
</div>> <mailto:<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a><br>
<div class="im">> <mailto:<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a>>><br>
> > <a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a> <<a href="http://www.greenwoodmap.com" target="_blank">http://www.greenwoodmap.com</a>><br>
> <<a href="http://www.greenwoodmap.com" target="_blank">http://www.greenwoodmap.com</a>><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Proj mailing list<br>
</div>> > <a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a> <mailto:<a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a>><br>
<div class="HOEnZb"><div class="h5">> > <a href="http://lists.maptools.org/mailman/listinfo/proj" target="_blank">http://lists.maptools.org/mailman/listinfo/proj</a><br>
> ><br>
><br>
> _______________________________________________<br>
> Proj mailing list<br>
> <a href="mailto:Proj@lists.maptools.org">Proj@lists.maptools.org</a> <mailto:<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>
><br>
><br>
><br>
><br>
> --<br>
> Richard Greenwood<br>
> <a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a> <mailto:<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a>><br>
> <a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a> <<a href="http://www.greenwoodmap.com" target="_blank">http://www.greenwoodmap.com</a>><br>
><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>
><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>