presto-geospatial/src/main/java/io/prestosql/plugin/geospatial/GeoFunctions.java/GeoFunctions/getWktExportFlags
class GeoFunctions:    private static int getWktExportFlags(Slice input)
    {
        byte hadoopShapeType = input.getByte(HADOOP_SHAPE_SIZE_WKID);
        if (hadoopShapeType < 0 || hadoopShapeType >= HADOOP_SHAPE_TYPES.length) {
            throw new PrestoException(INVALID_FUNCTION_ARGUMENT, "Invalid Hadoop shape type: " + hadoopShapeType);
        }
        return HADOOP_SHAPE_TYPES[hadoopShapeType];
    }