]> granicus.if.org Git - postgis/commitdiff
Renamed lwgeom_to_wkt to lwgeom_to_ewkt, as it doesn't strip out non-ogc
authorSandro Santilli <strk@keybit.net>
Tue, 1 Mar 2005 13:22:50 +0000 (13:22 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 1 Mar 2005 13:22:50 +0000 (13:22 +0000)
extensions.

git-svn-id: http://svn.osgeo.org/postgis/trunk@1456 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/liblwgeom.h
lwgeom/lwgeom.c
lwgeom/test.c

index 50b1796951eba50379bb9044afa6c681e701c5c0..4cf74b3d3f316219bed45587e4ab3b550e3f4ffc 100644 (file)
@@ -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);
index ee513ed3d3b0700d222d773402be9664b182e49c..274ccdf5c1723bd3ed254968c7d1500f50423c7c 100644 (file)
@@ -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;
index 4eabf3da5a702055cccd624d5282e57f53279560..5bd8b905cdd1deff66246312b8376a4563b4bfad 100644 (file)
@@ -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;