Commit 24719b86 authored by Paul Ramsey's avatar Paul Ramsey

Remove PG_LWGEOM_construct


git-svn-id: http://svn.osgeo.org/postgis/trunk@8010 b70326c6-7e19-0410-871a-916f4a2858ee
parent 9487fd9d
......@@ -209,14 +209,6 @@ pglwgeom_deserialize(PG_LWGEOM *in)
}
PG_LWGEOM *
PG_LWGEOM_construct(uint8_t *ser, int srid, int wantbbox)
{
lwerror("PG_LWGEOM_construct called!");
return NULL;
}
/*
* Set the SRID of a PG_LWGEOM
* Returns a newly allocated PG_LWGEOM object.
......@@ -303,10 +295,4 @@ pglwgeom_is_empty(const PG_LWGEOM *geom)
return gserialized_is_empty(geom);
}
char
is_worth_caching_pglwgeom_bbox(const PG_LWGEOM *in)
{
lwerror("is_worth_caching_pglwgeom_bbox called!");
return false;
}
......@@ -120,19 +120,6 @@ GSERIALIZED* gserialized_drop_gidx(GSERIALIZED *g);
extern PG_LWGEOM *pglwgeom_serialize(LWGEOM *lwgeom);
extern LWGEOM *pglwgeom_deserialize(PG_LWGEOM *pglwgeom);
/*
* Construct a full PG_LWGEOM type (including size header)
* from a serialized form.
* The constructed PG_LWGEOM object will be allocated using palloc
* and the serialized form will be copied.
* If you specify a SRID other then -1 it will be set.
* If you request bbox (wantbbox=1) it will be extracted or computed
* from the serialized form.
*
* NOTE: only available when GSERIALIZED_ON is undefined
* TODO: wrap in #ifndef GSERIALIZED_ON
*/
extern PG_LWGEOM *PG_LWGEOM_construct(uint8_t *serialized, int srid, int wantbbox);
/* PG_LWGEOM SRID get/set */
extern PG_LWGEOM *pglwgeom_set_srid(PG_LWGEOM *pglwgeom, int32 newSRID);
......@@ -152,7 +139,6 @@ extern int pglwgeom_is_empty(const PG_LWGEOM *geom);
* Return LW_FALSE if the geometry has no bounding box (ie: is empty).
*/
extern int pglwgeom_getbox2d_p(const PG_LWGEOM *geom, BOX2DFLOAT4 *box);
extern char is_worth_caching_pglwgeom_bbox(const PG_LWGEOM *);
/* PG-dependant */
......
......@@ -376,43 +376,3 @@ Datum lwgeom_cmp(PG_FUNCTION_ARGS)
PG_RETURN_INT32(0);
}
/***********************************************************
*
* $Log$
* Revision 1.9 2006/01/09 15:55:55 strk
* ISO C90 comments (finished in lwgeom/)
*
* Revision 1.8 2005/06/15 16:04:11 strk
* fault tolerant btree ops
*
* Revision 1.7 2005/02/07 13:21:10 strk
* Replaced DEBUG* macros with PGIS_DEBUG*, to avoid clashes with postgresql DEBUG
*
* Revision 1.6 2005/01/05 12:44:47 strk
* Added is_worth_caching_serialized_bbox(). Renamed lwgeom_setSRID() to
* pglwgeom_set_srid(). Fixed a bug in PG_LWGEOM_construct support for
* AUTOCACHE_BBOX.
*
* Revision 1.5 2004/09/29 10:50:30 strk
* Big layout change.
* lwgeom.h is public API
* liblwgeom.h is private header
* lwgeom_pg.h is for PG-links
* lw<type>.c contains type-specific functions
*
* Revision 1.4 2004/09/29 06:31:42 strk
* Changed LWGEOM to PG_LWGEOM.
* Changed LWGEOM_construct to PG_LWGEOM_construct.
*
* Revision 1.3 2004/08/20 14:08:41 strk
* Added Geom{etry,}FromWkb(<geometry>,[<int4>]) funx.
* Added LWGEOM typedef and SERIALIZED_FORM(LWGEOM) macro.
* Made lwgeom_setSRID an API function.
* Added LWGEOM_setAllocator().
*
* Revision 1.2 2004/08/19 13:10:13 strk
* fixed typos
*
* (ORDER BY, GROUP BY, DISTINCT)
*
***********************************************************/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment