added a function to convert coordinates to WKT