PostGIS  2.2.7dev-r@@SVN_REVISION@@
LWGEOM* wkt_parser_collection_add_geom ( LWGEOM col,
LWGEOM geom 
)

Definition at line 777 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().

778 {
779  LWDEBUG(4,"entered");
780 
781  /* Toss error on null geometry input */
782  if( ! (geom && col) )
783  {
785  return NULL;
786  }
787 
789 }
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:50
LWCOLLECTION * lwgeom_as_lwcollection(const LWGEOM *lwgeom)
Definition: lwgeom.c:143
#define SET_PARSER_ERROR(errno)
Definition: lwin_wkt.c:38
LWCOLLECTION * lwcollection_add_lwgeom(LWCOLLECTION *col, const LWGEOM *geom)
Appends geom to the collection managed by col.
Definition: lwcollection.c:174
#define PARSER_ERROR_OTHER
Definition: liblwgeom.h:1901
LWGEOM * lwcollection_as_lwgeom(const LWCOLLECTION *obj)
Definition: lwgeom.c:219

Here is the call graph for this function:

Here is the caller graph for this function: