]> granicus.if.org Git - postgis/commitdiff
ST_Dump with GSerialized POINT EMPTY and EWKT/AsText mismatch (#746)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 20 Jun 2011 21:15:48 +0000 (21:15 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 20 Jun 2011 21:15:48 +0000 (21:15 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7436 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_dump.c

index eafbfb59698673e8b8b05d6c40c1f2fade2ff7d5..f047135b997c301fefc4e104ce17407f170428e4 100644 (file)
@@ -126,6 +126,8 @@ Datum LWGEOM_dump(PG_FUNCTION_ARGS)
 
        /* Handled simple geometries */
        if ( ! state->root ) SRF_RETURN_DONE(funcctx);
+       /* Return nothing for empties */
+       if ( lwgeom_is_empty(state->root) ) SRF_RETURN_DONE(funcctx);
        if ( ! lwgeom_is_collection(state->root) )
        {
                values[0] = "{}";