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