[postgis-users] Coordinate with x-value of 180 is out of range.

Sean seanasy at gmail.com
Sat Mar 10 12:50:48 PST 2012


I'm trying to figure out if this is a problem with Natural Earth data
or with PostgreSQL/PostGIS.

The Natural Earth data contains coordinates for Antarctica with
longitude values of exactly 180. If I try to cast this to the
geography type it gives the error, "ERROR: Coordinate values are out
of range [-180 -90, 180 90] for GEOGRAPHY type".

This query http://pastebin.com/89KMjqs2 checks for values greater than
180 but returns results where the value is exactly 180.

Does anyone know what's going on? Is 180 not a valid value?

Thanks.



More information about the postgis-users mailing list