<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>EPSG:4326 supports longitude in both 0-360 & +-180 spaces. Postgis supports both. <br><br>Try the function at: <br><a href="http://www.postgis.org/documentation/manual-1.5/ST_Shift_Longitude.html">http://www.postgis.org/documentation/manual-1.5/ST_Shift_Longitude.html</a><br><br>If you are trying to do operations like point in polygon queries, then both points & polygons need to be in the same long space, as -179 is not = 181. This does not provide a complete solution, but does provide a solution for some dateline problems.<br><br>HTH,<br><br>  Brent Wood<br><br>--- On <b>Fri, 9/16/11, 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: [Qgis-user] viewing PostGIS
 GEOGRAPHY data<br>To: qgis-user@lists.osgeo.org<br>Date: Friday, September 16, 2011, 10:14 AM<br><br><div class="plainMail">I am trying to deal with data crossing the date line. I have kept a file on my Dropbox/Public folder [<a href="http://dl.dropbox.com/u/3526821/PA.gmt" target="_blank">http://dl.dropbox.com/u/3526821/PA.gmt</a>] which has a series of lat/lng pairs, one per line, making a single polygon. If I insert them into PostGIS as GEOMETRY, the resulting polygon is messed up. If I insert them as GEOGRAPHY, I can't view the polygon in Quantum GIS.<br><br>Any suggestion on how can I view it in QGIS? I am using QGIS 1.7 on a Mac, and Pg/Pgis 9.0.4/1.53.<br><br>Puneet._______________________________________________<br>Qgis-user mailing list<br><a ymailto="mailto:Qgis-user@lists.osgeo.org" href="/mc/compose?to=Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
 target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></div></blockquote></td></tr></table>