PostGIS  2.2.7dev-r@@SVN_REVISION@@
void wkt_parser_geometry_new ( LWGEOM geom,
int  srid 

Definition at line 845 of file lwin_wkt.c.

References struct_lwgeom_parser_result::geom, global_parser_result, LWDEBUG, LWDEBUGF, lwerror(), lwgeom_set_srid(), SRID_MAXIMUM, and SRID_UNKNOWN.

Referenced by yyparse().

846 {
847  LWDEBUG(4,"entered");
848  LWDEBUGF(4,"geom %p",geom);
849  LWDEBUGF(4,"srid %d",srid);
851  if ( geom == NULL )
852  {
853  lwerror("Parsed geometry is null!");
854  return;
855  }
857  if ( srid != SRID_UNKNOWN && srid < SRID_MAXIMUM )
858  lwgeom_set_srid(geom, srid);
859  else
862  global_parser_result.geom = geom;
863 }
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:50
LWGEOM_PARSER_RESULT global_parser_result
Unknown SRID value.
Definition: liblwgeom.h:172
void lwgeom_set_srid(LWGEOM *geom, int srid)
Set the SRID on an LWGEOM For collections, only the parent gets an SRID, all the children get SRID_UN...
Maximum allowed SRID value in serialized geometry.
Definition: liblwgeom.h:163
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:55
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:74

Here is the call graph for this function:

Here is the caller graph for this function: