function encodeLineStringGeometry(geom) {
  const coordinates = geom.getCoordinates();
  const array = [];
  for (let i = 0, ii = coordinates.length; i < ii; ++i) {
    array.push(coordinates[i].join(' '));
  }
  return array.join(',');
}
@param {LineString|import("../geom/LinearRing.js").default} geom LineString geometry.
@return {string} Coordinates part of LineString as WKT.