From 92aac5356a1b26f804caa2aa5d57c1224f457ff9 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 7 Oct 2004 17:18:08 +0000 Subject: [PATCH] Changed geometrytype() to support TYPEM. git-svn-id: http://svn.osgeo.org/postgis/trunk@954 b70326c6-7e19-0410-871a-916f4a2858ee --- lwgeom/lwgeom_ogc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lwgeom/lwgeom_ogc.c b/lwgeom/lwgeom_ogc.c index dc110b1e3..72b81b65d 100644 --- a/lwgeom/lwgeom_ogc.c +++ b/lwgeom/lwgeom_ogc.c @@ -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 -- 2.49.0