~ubuntu-branches/ubuntu/feisty/postgis/feisty

« back to all changes in this revision

Viewing changes to lwgeom/test.c

  • Committer: Bazaar Package Importer
  • Author(s): Alex Bodnaru
  • Date: 2005-05-05 10:02:45 UTC
  • Revision ID: james.westby@ubuntu.com-20050505100245-3005l6jn1jwvpsrw
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
#include "lwgeom.h"
 
3
 
 
4
int main()
 
5
{
 
6
        LWGEOM point;
 
7
 
 
8
        // Construct a point2d
 
9
        point = make_lwpoint2d(-1, 10, 20);
 
10
 
 
11
        // Print WKT end HEXWKB
 
12
        printf("EWKT: %s\n", lwgeom_to_ewkt(point));
 
13
        printf("HEXWKB: %s\n", lwgeom_to_hexwkb(point,-1));
 
14
 
 
15
        return 1;
 
16
}