Hi Puneet, One way is to reproject. Another is to shift longitudes to 0-360 instead of +-180 Another is to select your dataset, unioned to itself shifted 360 degrees in the mapserver data statement
the Postgis function ST_shiftlongitude can help. One example is to switch on one of the Biodiversity layers at: http://www.os2020.org.nz/project-map-chatchallenger/ These are all mapserver WMS layers crossing 180 degrees. provided by mapserver & displayed with OpenLayers. 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. Cheers, Brent Wood --- On Sat, 5/5/12, Puneet Kishor <[email protected]> wrote: From: Puneet Kishor <[email protected]> Subject: [mapserver-users] Re: handling features that cross the date line To: "mapserver" <[email protected]> Date: Saturday, May 5, 2012, 1:21 PM 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. Suggestions? On Apr 30, 2012, at 8:49 PM, Puneet Kishor wrote: > 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? > > Thanks. > > > > -- > Puneet Kishor _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
