| From: | Fabiana Zioti <fabi_zioti(at)hotmail(dot)com> |
|---|---|
| To: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
| Subject: | Development of an extension for PostgreSQL and PostGIS |
| Date: | 2017-08-14 18:18:39 |
| Message-ID: | CP1PR80MB074146A709916BE5C5E84CAFFD8C0@CP1PR80MB0741.lamprd80.prod.outlook.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
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 lwgeom;
};
In the extension I will create new data types for PostgreSQL, but I would like to use the geometric objects that the PostGIS extension offers, such as POINT, LINE, POLYGON, etc. In addition to their input functions (wkt- ST_GeomFromText ()), operators, index, etc.
In this case just importing the liblwgeom library would be enough to develop an extension to PostgreSQL / PostGIS?
Would you have any examples of such a project?
Thanks in advance!!
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Paul Ramsey | 2017-08-14 18:36:03 | Re: Development of an extension for PostgreSQL and PostGIS |
| Previous Message | Peter Eisentraut | 2017-08-14 13:01:01 | Re: Adding a new Clause in the Source Code |