I am using some legacy code which requires my data in PostgreSQL box type e.g. this format
However, I am using PostGIS with box2df i.e. I get:
BOX2DF(588893 4515997, 600342 4517442.5). Is there a PostGIS/PostgreSQL function which can transform my data from the BOX2DF format to the BOX format?
I cannot simply do a type cast:
ERROR: cannot cast type box2df to box