From: Sandro Santilli Date: Mon, 13 Jan 2014 22:50:30 +0000 (+0000) Subject: Ensure face splitting algorithm uses the edge index (#2610) X-Git-Tag: 2.2.0rc1~1274 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09150f9687a744668f467ffcad980843415995e1;p=postgis Ensure face splitting algorithm uses the edge index (#2610) git-svn-id: http://svn.osgeo.org/postgis/trunk@12184 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/topology/sql/sqlmm.sql.in b/topology/sql/sqlmm.sql.in index a7b81f5e2..dbb0a2778 100644 --- a/topology/sql/sqlmm.sql.in +++ b/topology/sql/sqlmm.sql.in @@ -3052,11 +3052,12 @@ BEGIN )::text ) || ') AND '; IF ishole THEN sql := sql || 'NOT '; END IF; - sql := sql || 'ST_Contains(' || quote_literal(fan.shell::text) + sql := sql || '( ' || quote_literal(fan.shell::text) + || ' && geom AND _ST_Contains(' || quote_literal(fan.shell::text) -- We only need to check a single point, but must not be an endpoint - || '::geometry, ST_LineInterpolatePoint(geom, 0.2))'; + || '::geometry, ST_LineInterpolatePoint(geom, 0.2)) )'; #ifdef POSTGIS_TOPOLOGY_DEBUG - RAISE DEBUG 'Updating edges bounding the old face'; + RAISE DEBUG 'Updating edges bounding the old face: %', sql; #endif EXECUTE sql;