<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">A few possible approaches... for both vector & 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, & create an eastern hemisphere with an extent of
0-180, and two western hemispheres, one with an extent from -180-0 &
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><taerwin@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Tim Erwin <taerwin@gmail.com><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&LAYERS=NE1&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=165,-30,215,20&WIDTH=256&HEIGHT=256">http://localhost/mapserv.cgi?map=naturalearth.map&LAYERS=NE1&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=165,-30,215,20&WIDTH=256&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> NAME "NaturalEarth"<br> IMAGETYPE PNG24<br> SIZE 800 600<br>
SHAPEPATH "./data"<br> EXTENT -180 -90 180 90<br> DEBUG 3<br><br> WEB<br> METADATA<br> "wms_title" "NaturalEarth WMS"<br> "wms_srs" "EPSG:4326"<br>
END<br> END<br><br> PROJECTION<br> "init=epsg:4326"<br> END<br><br> #<br> # Start of layer definitions<br> #<br> LAYER<br> NAME "NE1"<br> DATA "NE1_HR_LC_SR_W_DR.tif"<br>
TYPE RASTER<br> STATUS ON<br><br> PROJECTION<br> "init=epsg:4326"<br> END<br><br> 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>