presto-geospatial-toolkit/src/main/java/io/prestosql/geospatial/serde/GeometrySerializationType.java/GeometrySerializationType/getForCode
class GeometrySerializationType:    public static GeometrySerializationType getForCode(int code)
    {
        switch (code) {
            case 0:
                return POINT;
            case 1:
                return MULTI_POINT;
            case 2:
                return LINE_STRING;
            case 3:
                return MULTI_LINE_STRING;
            case 4:
                return POLYGON;
            case 5:
                return MULTI_POLYGON;
            case 6:
                return GEOMETRY_COLLECTION;
            case 7:
                return ENVELOPE;
            default:
                throw new IllegalArgumentException("Invalid type code: " + code);
        }
    }