From f1650b3817e747d1f0f59420cfbda8c42e26e552 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 1 Mar 2005 13:22:50 +0000 Subject: [PATCH] Renamed lwgeom_to_wkt to lwgeom_to_ewkt, as it doesn't strip out non-ogc extensions. git-svn-id: http://svn.osgeo.org/postgis/trunk@1456 b70326c6-7e19-0410-871a-916f4a2858ee --- lwgeom/liblwgeom.h | 2 +- lwgeom/lwgeom.c | 2 +- lwgeom/test.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lwgeom/liblwgeom.h b/lwgeom/liblwgeom.h index 50b179695..4cf74b3d3 100644 --- a/lwgeom/liblwgeom.h +++ b/lwgeom/liblwgeom.h @@ -1049,7 +1049,7 @@ extern LWCOLLECTION *lwcollection_segmentize2d(LWCOLLECTION *coll, double dist); extern uchar parse_hex(char *str); extern void deparse_hex(uchar str, uchar *result); extern uchar *parse_lwgeom_wkt(char *wkt_input); -extern char *lwgeom_to_wkt(LWGEOM *lwgeom); +extern char *lwgeom_to_ewkt(LWGEOM *lwgeom); extern char *lwgeom_to_hexwkb(LWGEOM *lwgeom, unsigned int byteorder); extern void *lwalloc(size_t size); diff --git a/lwgeom/lwgeom.c b/lwgeom/lwgeom.c index ee513ed3d..274ccdf5c 100644 --- a/lwgeom/lwgeom.c +++ b/lwgeom/lwgeom.c @@ -360,7 +360,7 @@ lwgeom_add(const LWGEOM *to, uint32 where, const LWGEOM *what) * Return an alloced string */ char * -lwgeom_to_wkt(LWGEOM *lwgeom) +lwgeom_to_ewkt(LWGEOM *lwgeom) { uchar *serialized = lwgeom_serialize(lwgeom); char *ret; diff --git a/lwgeom/test.c b/lwgeom/test.c index 4eabf3da5..5bd8b905c 100644 --- a/lwgeom/test.c +++ b/lwgeom/test.c @@ -9,7 +9,7 @@ int main() point = make_lwpoint2d(-1, 10, 20); // Print WKT end HEXWKB - printf("WKT: %s\n", lwgeom_to_wkt(point)); + printf("EWKT: %s\n", lwgeom_to_ewkt(point)); printf("HEXWKB: %s\n", lwgeom_to_hexwkb(point,-1)); return 1; -- 2.49.0