[postgis-users] ERROR: ptarray_area_spheroid: cannot handle ptarray that crosses equator

marcello marcellone nasoblu5 at yahoo.it
Thu Feb 3 12:51:50 PST 2011


i try to calculate the area for a geographic grid 0.25 degree but for some grids they touche equator i have the error in object.

"PostgreSQL 9.0.0 on x86_64-unknown-linux-gnu, compiled by GCC gcc (SUSE Linux) 4.5.0 20100604 [gcc-4_5-branch revision 160292], 64-bit"

"POSTGIS="2.0.0SVN" GEOS="3.2.2-CAPI-1.6.2" PROJ="Rel. 4.7.1, 23 September 2009" LIBXML="2.7.7" USE_STATS"


SELECT 161109 polygon ,ST_AREA(GEOGRAPHY(ST_GEOMETRYFROMTEXT('POLYGON((15.8327132977611 0.25,16 0.25,16 0,15.8566682147637 0,15.8566112518311 0.00356000009924173,15.8485898971558 0.124770000576973,15.8327132977611 0.25))'))) gsareageo

SELECT 161109 polygon ,ST_AREA(GEOGRAPHY(ST_GEOMETRYFROMTEXT('POLYGON((15.75 0,15.75 0.25,16 0.25,16 0,15.75 0))'))) gsareageo;

Any idea about it ?




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


More information about the postgis-users mailing list