From 4c6b078e684c8387659a255bca23570344e4f3d3 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Fri, 23 Mar 2012 21:07:00 +0000 Subject: [PATCH] Skip over geodetic check for empty geometries. git-svn-id: http://svn.osgeo.org/postgis/trunk@9538 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/lwgeodetic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/liblwgeom/lwgeodetic.c b/liblwgeom/lwgeodetic.c index 8abb074a7..6f24ab005 100644 --- a/liblwgeom/lwgeodetic.c +++ b/liblwgeom/lwgeodetic.c @@ -2534,6 +2534,9 @@ static int lwcollection_check_geodetic(const LWCOLLECTION *col) int lwgeom_check_geodetic(const LWGEOM *geom) { + if ( lwgeom_is_empty(geom) ) + return LW_TRUE; + switch (geom->type) { case POINTTYPE: -- 2.40.0