From 85eee8d45749fad8e96d99d990f67297002d2231 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sat, 20 Jun 2009 21:25:15 +0000 Subject: [PATCH] Handle empty polygon rings git-svn-id: http://svn.osgeo.org/postgis/trunk@4187 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/measures.c | 1 + 1 file changed, 1 insertion(+) diff --git a/liblwgeom/measures.c b/liblwgeom/measures.c index 124fcbf9d..ea6592b81 100644 --- a/liblwgeom/measures.c +++ b/liblwgeom/measures.c @@ -588,6 +588,7 @@ lwgeom_polygon_area(LWPOLY *poly) LWDEBUGF(4, " rings %d has %d points", i, ring->npoints); + if ( ! ring->npoints ) continue; /* empty ring */ for (j=0; jnpoints-1; j++) { getPoint2d_p(ring, j, &p1); -- 2.49.0