mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 09:32:46 +00:00
53559edffe
git-svn-id: http://svn.osgeo.org/postgis/trunk@989 b70326c6-7e19-0410-871a-916f4a2858ee
17 lines
267 B
C
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;
|
|
}
|