]> granicus.if.org Git - postgis/commitdiff
Skip over geodetic check for empty geometries.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 23 Mar 2012 21:07:00 +0000 (21:07 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 23 Mar 2012 21:07:00 +0000 (21:07 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9538 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeodetic.c

index 8abb074a7ed06435be57f66558d81635b9930e1a..6f24ab00517d6e8bf614c8aad303307da8de0339 100644 (file)
@@ -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: