-- Flatten(geometry)
+- LWGEOM editor (insert/append a geom, remove a geom, ....)
- Make collect() avoid flatting
- Make GEOS2POSTGIS() avoid flatting
+- Flatten(geometry)
+
- F linemerge(linestring, linestring)
- A linemerge(linestring, linestring)
#define DEFAULT_CONTEXT CONTEXT_PG
/* Global variables */
-#if DEFAULT_CONTEXT == SA
+#if DEFAULT_CONTEXT == CONTEXT_SA
lwallocator lwalloc = default_allocator;
lwreallocator lwrealloc = default_reallocator;
lwfreeor lwfree = default_freeor;
typedef struct LWGEOM_T LWGEOM;
+// Serialization / deserialization
+extern LWGEOM *lwgeom_deserialize(char *serializedform);
+extern char *lwgeom_serialize(LWGEOM *lwgeom);
+extern char *lwgeom_serialize_size(LWGEOM *lwgeom);
+extern void lwgeom_serialize_buf(LWGEOM *lwgeom, char *buf);
+
extern void lwgeom_reverse(LWGEOM *lwgeom);
extern void lwgeom_forceRHR(LWGEOM *lwgeom);
PG_FUNCTION_INFO_V1(LWGEOM_accum);
Datum LWGEOM_accum(PG_FUNCTION_ARGS)
{
- ArrayType *array;
+ ArrayType *array = NULL;
int nelems, nbytes;
Datum datum;
PG_LWGEOM *geom;