Re: [GENERAL] Geometric, getting x and y co-ordinates GOING MAD!!!!!

1999-06-04 Thread selkovjr
> I have no training in C so I've reached this far by trial and error. I > have however discovered that if write a function such as > > /* pants.c >weird of what! */ > #include "postgres.h" > #include "utils/geo_decls.h" > double > pants(Point *pt) > { > return 2.0; > } > > and compil

Re: [GENERAL] Geometric, getting x and y co-ordinates GOING MAD!!!!!

1999-06-04 Thread Stuart Rison
Following my original posting, I did a bit of hunitng in the source and used them to come up with these functions: /* get_x.c a function to return the x coord of a point */ #include "postgres.h" #include "utils/geo_decls.h" double get_x(Point *pt) { if (!PointerIsValid(pt))