[postgis-users] Is -180 longitude valid for wgs84?

Peter Fay pfay.geotools at intelliskills.com
Thu Aug 3 14:45:54 PDT 2006


Hi,

I have some points in a coastline database (GSHHS) that have longitude=-180.
When equal points are compared, for example,

 

 

select equals(geomfromtext('POINT(180 20)', 4326), geomfromtext('POINT(-180
20)', 4326))

 

the result is false.  Is the problem here invalid data (one can't use -180
in SRID 4326) or is it a bug in postgis?

Or worse, neither - do I always need to normalize every longitude in case it
happens to be -180?

 

-Pete

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20060803/0fd02ead/attachment.html>


More information about the postgis-users mailing list