]> granicus.if.org Git - postgis/commitdiff
used pglwgeom_deserialize() where appropriate
authorSandro Santilli <strk@keybit.net>
Fri, 11 Nov 2005 15:49:57 +0000 (15:49 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 11 Nov 2005 15:49:57 +0000 (15:49 +0000)
git-svn-id: http://svn.osgeo.org/postgis/branches/pgis_1_0@2024 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_functions_basic.c

index cf794afb5cd1b2d485f8a65951a02c6d0bc558a0..05b899ab6d618776f7db5fb380926bb148f6d595 100644 (file)
@@ -182,7 +182,7 @@ Datum LWGEOM_summary(PG_FUNCTION_ARGS)
 
        init_pg_func();
 
-       lwgeom = lwgeom_deserialize(SERIALIZED_FORM(geom));
+       lwgeom = pglwgeom_deserialize(geom);
 
        result = lwgeom_summary(lwgeom, 0);
 
@@ -2483,7 +2483,7 @@ Datum LWGEOM_noop(PG_FUNCTION_ARGS)
 
        in = (PG_LWGEOM *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
 
-       lwgeom = lwgeom_deserialize(SERIALIZED_FORM(in));
+       lwgeom = pglwgeom_deserialize(in);
 
        //lwnotice("Deserialized: %s", lwgeom_summary(lwgeom, 0));
 
@@ -2565,8 +2565,8 @@ Datum LWGEOM_same(PG_FUNCTION_ARGS)
        }
 
        // ok, deserialize.
-       lwg1 = lwgeom_deserialize(SERIALIZED_FORM(g1));
-       lwg2 = lwgeom_deserialize(SERIALIZED_FORM(g2));
+       lwg1 = pglwgeom_deserialize(g1);
+       lwg2 = pglwgeom_deserialize(g2);
 
        // invoke appropriate function
        result = lwgeom_same(lwg1, lwg2);