postgis/lwgeom/test.c
Sandro Santilli 53559edffe Added simpler lwpoint constructors.
git-svn-id: http://svn.osgeo.org/postgis/trunk@989 b70326c6-7e19-0410-871a-916f4a2858ee
2004-10-13 14:26:36 +00:00

17 lines
267 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("WKT: %s\n", lwgeom_to_wkt(point));
printf("HEXWKB: %s\n", lwgeom_to_hexwkb(point,-1));
return 1;
}