From: Paul Ramsey Date: Fri, 23 Mar 2012 21:07:00 +0000 (+0000) Subject: Skip over geodetic check for empty geometries. X-Git-Tag: 2.0.0rc1~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c6b078e684c8387659a255bca23570344e4f3d3;p=postgis Skip over geodetic check for empty geometries. git-svn-id: http://svn.osgeo.org/postgis/trunk@9538 b70326c6-7e19-0410-871a-916f4a2858ee --- 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: