|
PostGIS
3.4.0dev-r@@SVN_REVISION@@
|
| LWGEOM* lwgeom_from_twkb | ( | const uint8_t * | twkb, |
| size_t | twkb_size, | ||
| char | check | ||
| ) |
WKB inputs must have a declared size, to prevent malformed WKB from reading off the end of the memory segment (this stops a malevolent user from declaring a one-ring polygon to have 10 rings, causing the WKB reader to walk off the end of the memory).
| twkb | Input twkb buffer |
| twkb_size | parser check flags, see LW_PARSER_CHECK_* macros |
| check | parser check flags, see LW_PARSER_CHECK_* macros |
Check is a bitmask of: LW_PARSER_CHECK_MINPOINTS, LW_PARSER_CHECK_ODD, LW_PARSER_CHECK_CLOSURE, LW_PARSER_CHECK_NONE, LW_PARSER_CHECK_ALL
Definition at line 654 of file lwin_twkb.c.
References LWDEBUG, LWDEBUGF, lwgeom_from_twkb_state(), s, and TWKB_IN_MAXCOORDS.
Referenced by cu_twkb_idlist(), cu_twkb_in(), and LWGEOMFromTWKB().

