PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ wkt_parser_geometry_new()

void wkt_parser_geometry_new ( LWGEOM geom,
int32_t  srid 
)

Definition at line 895 of file lwin_wkt.c.

896{
897 LWDEBUG(4,"entered");
898 LWDEBUGF(4,"geom %p",geom);
899 LWDEBUGF(4,"srid %d",srid);
900
901 if ( geom == NULL )
902 {
903 lwerror("Parsed geometry is null!");
904 return;
905 }
906
907 if ( srid != SRID_UNKNOWN && srid <= SRID_MAXIMUM )
908 lwgeom_set_srid(geom, srid);
909 else
911
913}
void lwgeom_set_srid(LWGEOM *geom, int32_t srid)
Set the SRID on an LWGEOM For collections, only the parent gets an SRID, all the children get SRID_UN...
Definition lwgeom.c:1638
#define SRID_MAXIMUM
Maximum allowed SRID value in serialized geometry.
Definition liblwgeom.h:206
#define SRID_UNKNOWN
Unknown SRID value.
Definition liblwgeom.h:215
#define LWDEBUG(level, msg)
Definition lwgeom_log.h:101
#define LWDEBUGF(level, msg,...)
Definition lwgeom_log.h:106
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
LWGEOM_PARSER_RESULT global_parser_result

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

Here is the call graph for this function: