<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi Puneet,<br><br>One way is to reproject.<br>Another is to shift longitudes to 0-360 instead of +-180<br>Another is to select your dataset, unioned to itself shifted 360 degrees in the mapserver data statement<br><br>the Postgis function ST_shiftlongitude can help.<br><br>One example is to switch on one of the Biodiversity layers at: <br><a href="http://www.os2020.org.nz/project-map-chatchallenger/">http://www.os2020.org.nz/project-map-chatchallenger/</a><br><br>These are all mapserver WMS layers crossing 180 degrees. provided by mapserver & displayed with OpenLayers.<br><br>There is an issue, in that if the map pans to either side of 180, the entire layer is redrawn, but at least the map looks correct.<br><br>Cheers,<br><br> Brent Wood<br><br><br>--- On <b>Sat, 5/5/12, Puneet Kishor <i><punk.kish@gmail.com></i></b> wrote:<br><blockquote
style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Puneet Kishor <punk.kish@gmail.com><br>Subject: [mapserver-users] Re: handling features that cross the date line<br>To: "mapserver" <mapserver-users@lists.osgeo.org><br>Date: Saturday, May 5, 2012, 1:21 PM<br><br><div class="plainMail">bumpety bump. The following page discusses the issue, but I am not sure what the resolution is. I'd preferably solve this without having to edit the lines.<br><br>Suggestions?<br><br>On Apr 30, 2012, at 8:49 PM, Puneet Kishor wrote:<br><br>> What is the recommended way of handling such features? I have a bunch of lines (held in Postgis) that cross the date line, and the WMS tiles drawn by MapServer get all messed up. What is the easiest way to get them to draw correctly?<br>> <br>> Thanks.<br>> <br>> <br>> <br>> --<br>> Puneet
Kishor<br><br><br>_______________________________________________<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>