in data/geospatial/geospatial-gen.py [0:0]
def geometry_type_code(wkt):
if wkt is None:
return None
geometry_type, _, dimensions = re.match(r"([A-Z]+)( ([ZM]+)?)?", wkt).groups()
return GEOMETRY_TYPE_CODE[geometry_type] + DIMENSIONS_CODE[dimensions]