PostGIS  2.5.0dev-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:224
#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:2036
LWGEOM * lwcollection_as_lwgeom(const LWCOLLECTION *obj)
Definition: lwgeom.c:300
Here is the call graph for this function:
Here is the caller graph for this function: