postgis/lwgeom/test.c
Sandro Santilli f1650b3817 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
2005-03-01 13:22:50 +00:00

17 lines
269 B
C

#include <stdio.h>
#include "lwgeom.h"
int main()
{
LWGEOM point;
// Construct a point2d
point = make_lwpoint2d(-1, 10, 20);
// Print WKT end HEXWKB
printf("EWKT: %s\n", lwgeom_to_ewkt(point));
printf("HEXWKB: %s\n", lwgeom_to_hexwkb(point,-1));
return 1;
}