MSSQL function which converts WKT format to KML