Convert a glmap Selection or Bounds Event into a WKT Polygon (gl_bbox_to_wkt)
Source: R/scales.R
gl_bbox_to_wkt.RdConverts either a numeric vector c(xmin, ymin, xmax, ymax) or a Shiny
input$map_selected / input$map_bounds list directly into an EPSG:4326
POLYGON ((...)) WKT string ready for Snowflake ST_WITHIN(GEOGRAPHY, TO_GEOGRAPHY(?))
or DuckDB Spatial ST_Intersects(geom, ST_GeomFromText(?)).