This is a convenience temporary function which returns the WKT
representation of a CRS, using sf::st_as_text()
in case PROJ < 3,
rgdal::CRS()
otherwise.
This has the advantage to perform precise transformations with PROJ >=3,
and to avoid conversion errors
(see here).
This function will be deleted whenever sf
will manage WKT2.