PostGIS
2.5.7dev-r@@SVN_REVISION@@
|
int geometry_type_from_string | ( | const char * | str, |
uint8_t * | type, | ||
int * | z, | ||
int * | m | ||
) |
Calculate type integer and dimensional flags from string input.
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, GEOMTYPE_STRUCT_ARRAY_LEN, LW_FAILURE, LW_SUCCESS, lwalloc(), lwfree(), geomtype_struct::m, geomtype_struct::type, ovdump::type, and geomtype_struct::z.
Referenced by getTableInfo(), gserialized_typmod_in(), and test_geometry_type_from_string().