<div>Hi,</div><div> </div><div>I have a problem with my geography type query. The query is set up to calculate the area of every intersection between a regular grid (.5x.5 decimal degrees) and a polygon shapefile for Africa.</div>
<div>However, I run into problems. I have checked both the grid geometry and the polygon geometry, and both are valid. No problems there.</div><div> </div><div>My query and error:</div><div>SELECT p.gid AS pg_gid, t.gid AS tribe_gid, t.tribe_code AS tribe_code, ST_Area(ST_Intersection(p.cell::geography, t.geom::geography))/ST_Area(p.cell::geography)*100 AS area_perc<br>
INTO priogrid_tribes FROM priogrid_land p, border_tribes t WHERE ST_Intersects(p.cell::geography, t.geom::geography);</div><div><br>ERROR:  ptarray_area_spheroid: cannot handle ptarray that crosses equator</div><div> </div>
<div>Any ideas why I receive this error.</div><div> </div><div>My system:</div><div>"POSTGIS="2.0.2 r10789" GEOS="3.4.0dev-CAPI-1.8.0" PROJ="Rel. 4.7.1, 23 September 2009" GDAL="GDAL 1.9.0, released 2011/12/29" LIBXML="2.7.8" (core procs from "2.0.1 r9979" need upgrade) RASTER (raster procs from "2.0.1 r9979" need upgrade)"</div>