in data/geospatial/geospatial-gen.py [0:0]
def iso_type_code(shapely_type_id, has_z, has_m):
# item was null
if shapely_type_id < 0:
return None
# GEOS type ids are not quite WKB type ids
iso_type_id = shapely_type_id if shapely_type_id >= 3 else shapely_type_id + 1
iso_dimensions = (
3000 if has_z and has_m else 2000 if has_m else 1000 if has_z else 0
)
return int(iso_dimensions + iso_type_id)