I have been running the SQL below and it has been working fine for 2 out of my three tables (_priority1 & _priority2) however when I try to run it with _priority3 I get an error;<br><br>NOTICE: TopologyException: no outgoing dirEdge found (
<span style="font-style: italic;">some coordinates</span>)<br>ERROR: GEOS Intersection() threw an error<br><br>****SQL CODE CAUSING ERROR*****<br>DROP TABLE _test;<br>CREATE TABLE _test AS<br>SELECT area(transform(intersection(
p.the_geom, p1.the_geom),28354))/10000 as area, p.pfi<br>FROM _clip_parcel_not_crown as p, _priority3 as p1<br>WHERE p.the_geom && p1.the_geom<br>AND within(p.the_geom, p1.the_geom)<br>OR overlaps(p1.the_geom, p.the_geom
);<br>DROP TABLE _test2;<br>CREATE TABLE _test2 AS<br>SELECT pfi, sum(area) as area<br>FROM _test<br>GROUP BY pfi<br>ORDER BY pfi;<br>UPDATE interim_parcel<br>SET priority3 = area<br>FROM _test2<br>WHERE interim_parcel.parcelpfi = pfi
<br>*************************************************<br><br>This seems very odd to me because I ran a similar statement which ran fine for all of my tables _priority1, 2 & 3;<br><br>****SQL CODE******<br>UPDATE interim_parcel
<br>SET priority1 = area(transform(intersection(p.the_geom, p1.the_geom),28354))/10000<br>FROM _clip_parcel_not_crown as p, _priority1 as p1<br>WHERE p.the_geom && p1.the_geom<br>AND (overlaps(p.the_geom, p1.the_geom
) OR within(p.the_geom, p1.the_geom))<br>AND interim_parcel.parcelpfi = p.pfi<br>****************************************<br><br>If someone could point out what is going on it would be appreciated.<br><br>Running POSTGRESQL
8.0.8 & POSTGIS 1.1.2.<br><br>Thanks in advance,<br><br>Craig<br>