PostGIS  2.4.9dev-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.

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

Referenced by yyparse().

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