mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-24 17:12:35 +00:00
Move SERIALIZED_FORM to lwgeom_pg.h from liblwgeom.h since it references a PostgreSQL-only structure. Per report from Nicklas Aven.
git-svn-id: http://svn.osgeo.org/postgis/trunk@4310 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
parent
903a69f3fa
commit
91a55bceb1
|
@ -718,12 +718,6 @@ char is_worth_caching_pglwgeom_bbox(const PG_LWGEOM *);
|
|||
char is_worth_caching_serialized_bbox(const uchar *);
|
||||
char is_worth_caching_lwgeom_bbox(const LWGEOM *);
|
||||
|
||||
/*
|
||||
* Use this macro to extract the char * required
|
||||
* by most functions from an PG_LWGEOM struct.
|
||||
* (which is an PG_LWGEOM w/out int32 size casted to char *)
|
||||
*/
|
||||
#define SERIALIZED_FORM(x) ((uchar *)VARDATA((x)))
|
||||
|
||||
/*
|
||||
* This function computes the size in bytes
|
||||
|
|
|
@ -83,6 +83,14 @@ extern int pglwgeom_getSRID(PG_LWGEOM *pglwgeom);
|
|||
extern Oid getGeometryOID(void);
|
||||
|
||||
/* PG-dependant */
|
||||
|
||||
/*
|
||||
* Use this macro to extract the char * required
|
||||
* by most functions from an PG_LWGEOM struct.
|
||||
* (which is an PG_LWGEOM w/out int32 size casted to char *)
|
||||
*/
|
||||
#define SERIALIZED_FORM(x) ((uchar *)VARDATA((x)))
|
||||
|
||||
/* BOX is postgresql standard type */
|
||||
extern void box_to_box3d_p(BOX *box, BOX3D *out);
|
||||
extern void box3d_to_box_p(BOX3D *box, BOX *out);
|
||||
|
|
Loading…
Reference in a new issue