]> granicus.if.org Git - postgis/commitdiff
Changed geometrytype() to support TYPEM.
authorSandro Santilli <strk@keybit.net>
Thu, 7 Oct 2004 17:18:08 +0000 (17:18 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 7 Oct 2004 17:18:08 +0000 (17:18 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@954 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_ogc.c

index dc110b1e326d6f4b4335328008b0cd4ff8123329..72b81b65dd1d12834ee70ad9b52f2e6e718d7ae8 100644 (file)
@@ -128,6 +128,9 @@ Datum LWGEOM_getTYPE(PG_FUNCTION_ARGS)
        else
                strcpy(result,"UNKNOWN");
 
+       if ( TYPE_HASM(lwgeom->type) && ! TYPE_HASZ(lwgeom->type) )
+               strcat(result, "M");
+
        size = strlen(result) +4 ;
 
        memcpy(text_ob, &size,4); // size of string