]> granicus.if.org Git - postgis/commitdiff
SRID is no more skipped from asText output.
authorSandro Santilli <strk@keybit.net>
Mon, 20 Dec 2004 14:21:34 +0000 (14:21 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 20 Dec 2004 14:21:34 +0000 (14:21 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1168 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_ogc.c

index dfe353dfd3ff087343a0aab20a41b5a26262d334..ac57facc64122fb9d4a422ae400b4bafbdc7d97d 100644 (file)
@@ -743,11 +743,12 @@ Datum LWGEOM_asText(PG_FUNCTION_ARGS)
        lwgeom = (PG_LWGEOM *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
        result_cstring =  unparse_WKT(SERIALIZED_FORM(lwgeom),lwalloc,lwfree);
 
-       semicolonLoc = strchr(result_cstring,';');
+       //semicolonLoc = strchr(result_cstring,';');
 
-       //loc points to start of wkt
-       if (semicolonLoc == NULL) loc_wkt = result_cstring;
-       else loc_wkt = semicolonLoc +1;
+       ////loc points to start of wkt
+       //if (semicolonLoc == NULL) loc_wkt = result_cstring;
+       //else loc_wkt = semicolonLoc +1;
+       loc_wkt = result_cstring;
 
        len = strlen(loc_wkt)+4;
        result = palloc(len);