PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
int geometry_type_from_string | ( | const char * | str, |
uint8_t * | type, | ||
int * | z, | ||
int * | m | ||
) |
Utility function to get type number from string.
For example, a string 'POINTZ' would return type of 1 and z of 1 and m of 0. Valid
Utility function to get type number from string.
Case insensitive, and insensitive to spaces at front and back. Type == 0 in the case of the string "GEOMETRY" or "GEOGRAPHY". Return LW_SUCCESS for success.
Definition at line 163 of file g_util.c.
References dump_toupper(), GEOMTYPE_STRUCT_ARRAY_LEN, LW_FAILURE, LW_SUCCESS, lwalloc(), lwfree(), geomtype_struct::m, geomtype_struct::type, and geomtype_struct::z.
Referenced by getTableInfo(), gserialized_typmod_in(), and test_geometry_type_from_string().