PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_from_text()

static LWGEOM* lwgeom_from_text ( const char *  str)
static

Definition at line 24 of file cu_ptarray.c.

References struct_lwgeom_parser_result::geom, LW_FAILURE, LW_PARSER_CHECK_NONE, lwgeom_parse_wkt(), and r.

Referenced by test_ptarray_append_point(), test_ptarray_append_ptarray(), test_ptarray_contains_point(), test_ptarray_insert_point(), test_ptarray_isccw(), test_ptarray_locate_point(), test_ptarray_scale(), test_ptarray_signed_area(), test_ptarray_unstroke(), and test_ptarrayarc_contains_point().

25 {
27  if( LW_FAILURE == lwgeom_parse_wkt(&r, (char*)str, LW_PARSER_CHECK_NONE) )
28  return NULL;
29  return r.geom;
30 }
char * r
Definition: cu_in_wkt.c:24
#define LW_FAILURE
Definition: liblwgeom.h:79
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2013
int lwgeom_parse_wkt(LWGEOM_PARSER_RESULT *parser_result, char *wktstr, int parse_flags)
Parse a WKT geometry string into an LWGEOM structure.
Parser result structure: returns the result of attempting to convert (E)WKT/(E)WKB to LWGEOM...
Definition: liblwgeom.h:2020
Here is the call graph for this function:
Here is the caller graph for this function: