presto-geospatial-toolkit/src/main/java/io/prestosql/geospatial/serde/GeometrySerde.java/GeometrySerde/getGeometryType
class GeometrySerde:    public static GeometryType getGeometryType(Slice shape)
    {
        return deserializeType(shape).geometryType();
    }