s are entering correctly, but I can not
return the structure pointer..
It is wrong the way I'm programming the extension with the PostGIS?
Thanks in advance
De: Paul Ramsey
Enviado: segunda-feira, 14 de agosto de 2017 15:36
Para: Fabiana Zioti
Cc: pgsql-general
In order to get an LWGEOM from PostGIS you'll need to convert from the
serialized form (GSERIALIZED) which you can read all about in the
liblwgeom.h header. You'll be adding a hard dependency of course, but
hopefully you're OK with that.
If you're just hoping to build a compound type, as your exam
Hello.
I will start developing an extension to PostgreSQL next to PostGIS using the C
language.
If my new type were:
CREATE TYPE mytype (.., .., .., geom geometry);
The creation of the structure in c, would be something like?
#include "liblwgeom.h"
Struct mytype
{
Int32 id;
LWGEOM lwg