PostGIS  2.1.10dev-r@@SVN_REVISION@@
LWGEOM* wkt_parser_curvepolygon_new ( LWGEOM ring)

Definition at line 540 of file lwin_wkt.c.

References LWGEOM::flags, FLAGS_GET_M, FLAGS_GET_Z, lwcurvepoly_as_lwgeom(), lwcurvepoly_construct_empty(), LWDEBUG, PARSER_ERROR_OTHER, SET_PARSER_ERROR, SRID_UNKNOWN, and wkt_parser_curvepolygon_add_ring().

Referenced by yyparse().

541 {
542  LWGEOM *poly;
543  LWDEBUG(4,"entered");
544 
545  /* Toss error on null geometry input */
546  if( ! ring )
547  {
549  return NULL;
550  }
551 
552  /* Construct poly and add the ring. */
554  /* Return the result. */
555  return wkt_parser_curvepolygon_add_ring(poly,ring);
556 }
uint8_t flags
Definition: liblwgeom.h:353
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:50
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:154
LWCURVEPOLY * lwcurvepoly_construct_empty(int srid, char hasz, char hasm)
Definition: lwcurvepoly.c:23
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
Definition: liblwgeom.h:106
#define SET_PARSER_ERROR(errno)
Definition: lwin_wkt.c:38
#define FLAGS_GET_M(flags)
Definition: liblwgeom.h:107
LWGEOM * lwcurvepoly_as_lwgeom(const LWCURVEPOLY *obj)
Definition: lwgeom.c:229
LWGEOM * wkt_parser_curvepolygon_add_ring(LWGEOM *poly, LWGEOM *ring)
Definition: lwin_wkt.c:558
#define PARSER_ERROR_OTHER
Definition: liblwgeom.h:1738

Here is the call graph for this function:

Here is the caller graph for this function: