<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">A few possible approaches... for both vector &amp; raster data<br>
<br>
Try this at the clent side:<br>
<br>
http://openlayers.org/dev/examples/wrapDateLine.html<br>
<br>
I have also (in PostGIS) replicated vector data in the western hemisphere so the global dataset extends from -180 to 360.<br>
<br>
Also, depending on whether or not you have polygons/linestrings crossing
 180, I've used the Postgis shift_longitude() function to resolve this 
serverside.<br>
<br>
Also, take your +-180 raster map, with a tool like imagemagick, chop it 
in half at 180, &amp; create an eastern hemisphere with an extent of 
0-180, and two western hemispheres, one with an extent from -180-0 &amp;
 one from 180-360. In your map file set all three to status default so 
they are always on, or make them members of the same group so they can 
be de/selected as a single layer.<br>
<br>
There are a few hacks around this, but not many definitive answers.<br><br>--- On <b>Tue, 3/22/11, Tim Erwin <i>&lt;taerwin@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Tim Erwin &lt;taerwin@gmail.com&gt;<br>Subject: [mapserver-users] WMS help with dataline issues<br>To: mapserver-users@lists.osgeo.org<br>Date: Tuesday, March 22, 2011, 2:37 PM<br><br><div id="yiv1074910698"><span class="yiv1074910698gI">I am using raster data from naturalearthdata which is in </span><span class="yiv1074910698gI">EPSG:4326 [-180</span> -90 180 90]. But when requesting data via openlayers with the map centred at 180E it only draws up to 180E. Below is one of the requests from openlayers: <br>
<span class="yiv1074910698gI"><br><a rel="nofollow" target="_blank" href="http://localhost/mapserv.cgi?map=naturalearth.map&amp;LAYERS=NE1&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;FORMAT=image%2Fjpeg&amp;SRS=EPSG%3A4326&amp;BBOX=165,-30,215,20&amp;WIDTH=256&amp;HEIGHT=256">http://localhost/mapserv.cgi?map=naturalearth.map&amp;LAYERS=NE1&amp;SERVICE=WMS&amp;VERSION=1.1.1&amp;REQUEST=GetMap&amp;FORMAT=image%2Fjpeg&amp;SRS=EPSG%3A4326&amp;BBOX=165,-30,215,20&amp;WIDTH=256&amp;HEIGHT=256</a><br>
<br>How do I get mapserver to render past 180E (or other options)? <br><br>Regards,<br><br>Tim<br><br>######MAPFILE########<br><br>MAP<br>&nbsp;&nbsp;&nbsp; NAME "NaturalEarth"<br>&nbsp;&nbsp;&nbsp; IMAGETYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PNG24<br>&nbsp;&nbsp;&nbsp; SIZE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 800 600<br>
&nbsp;&nbsp;&nbsp; SHAPEPATH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "./data"<br>&nbsp;&nbsp;&nbsp; EXTENT -180 -90 180 90<br>&nbsp;&nbsp;&nbsp; DEBUG 3<br><br>&nbsp;&nbsp;&nbsp; WEB<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; METADATA<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "wms_title"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "NaturalEarth WMS"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "wms_srs"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "EPSG:4326"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; END<br><br>&nbsp;&nbsp;&nbsp; PROJECTION<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "init=epsg:4326"<br>&nbsp;&nbsp;&nbsp; END<br><br>&nbsp;&nbsp;&nbsp; #<br>&nbsp;&nbsp;&nbsp; # Start of layer definitions<br>&nbsp;&nbsp;&nbsp; #<br>&nbsp;&nbsp;&nbsp; LAYER<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME "NE1"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATA "NE1_HR_LC_SR_W_DR.tif"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE RASTER<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATUS ON<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PROJECTION<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "init=epsg:4326"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br><br>&nbsp;&nbsp;&nbsp; END<br><br>END #mapfile<br></span>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>mapserver-users mailing list<br><a ymailto="mailto:mapserver-users@lists.osgeo.org" href="/mc/compose?to=mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></div></blockquote></td></tr></table>