[postgis-tickets] r17499 - Pull gserialized_from_lwgeom_size() back to internal API

Paul Ramsey pramsey at cleverelephant.ca
Tue Jun 11 11:31:23 PDT 2019


Author: pramsey
Date: 2019-06-11 11:31:23 -0700 (Tue, 11 Jun 2019)
New Revision: 17499

Modified:
   trunk/liblwgeom/liblwgeom.h.in
   trunk/liblwgeom/liblwgeom_internal.h
Log:
Pull gserialized_from_lwgeom_size() back to internal API


Modified: trunk/liblwgeom/liblwgeom.h.in
===================================================================
--- trunk/liblwgeom/liblwgeom.h.in	2019-06-11 18:24:40 UTC (rev 17498)
+++ trunk/liblwgeom/liblwgeom.h.in	2019-06-11 18:31:23 UTC (rev 17499)
@@ -1948,13 +1948,6 @@
 extern int geometry_type_from_string(const char *str, uint8_t *type, int *z, int *m);
 
 /**
-* Calculate required memory segment to contain a serialized form of the LWGEOM.
-* Primarily used internally by the serialization code. Exposed to allow the cunit
-* tests to exercise it.
-*/
-extern size_t gserialized_from_lwgeom_size(const LWGEOM *geom);
-
-/**
 * Allocate a new #GSERIALIZED from an #LWGEOM. For all non-point types, a bounding
 * box will be calculated and embedded in the serialization. The geodetic flag is used
 * to control the box calculation (cartesian or geocentric). If set, the size pointer

Modified: trunk/liblwgeom/liblwgeom_internal.h
===================================================================
--- trunk/liblwgeom/liblwgeom_internal.h	2019-06-11 18:24:40 UTC (rev 17498)
+++ trunk/liblwgeom/liblwgeom_internal.h	2019-06-11 18:31:23 UTC (rev 17499)
@@ -268,6 +268,13 @@
  */
 int gserialized_peek_gbox_p(const GSERIALIZED *g, GBOX *gbox);
 
+/**
+* Calculate required memory segment to contain a serialized form of the LWGEOM.
+* Primarily used internally by the serialization code. Exposed to allow the cunit
+* tests to exercise it.
+*/
+size_t gserialized_from_lwgeom_size(const LWGEOM *geom);
+
 /*
 * Length calculations
 */



More information about the postgis-tickets mailing list