PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ wkt_parser_collection_add_geom()

LWGEOM* wkt_parser_collection_add_geom ( LWGEOM col,
LWGEOM geom 
)

Definition at line 791 of file lwin_wkt.c.

792 {
793  LWDEBUG(4,"entered");
794 
795  /* Toss error on null geometry input */
796  if( ! (geom && col) )
797  {
799  return NULL;
800  }
801 
803 }
LWGEOM * lwcollection_as_lwgeom(const LWCOLLECTION *obj)
Definition: lwgeom.c:300
#define PARSER_ERROR_OTHER
Definition: liblwgeom.h:2037
LWCOLLECTION * lwcollection_add_lwgeom(LWCOLLECTION *col, const LWGEOM *geom)
Appends geom to the collection managed by col.
Definition: lwcollection.c:187
LWCOLLECTION * lwgeom_as_lwcollection(const LWGEOM *lwgeom)
Definition: lwgeom.c:224
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:83
#define SET_PARSER_ERROR(errno)
Definition: lwin_wkt.c:52

References lwcollection_add_lwgeom(), lwcollection_as_lwgeom(), LWDEBUG, lwgeom_as_lwcollection(), PARSER_ERROR_OTHER, and SET_PARSER_ERROR.

Here is the call graph for this function: