func (c Coordinates) String() string {
	var sb strings.Builder
	sb.WriteString("Coordinates[")
	sb.WriteString(c.Type.String())
	sb.WriteString("] ")
	sb.WriteString(strconv.FormatFloat(c.X, 'f', -1, 64))
	sb.WriteRune(' ')
	sb.WriteString(strconv.FormatFloat(c.Y, 'f', -1, 64))
	if c.Type.Is3D() {
		sb.WriteRune(' ')
		sb.WriteString(strconv.FormatFloat(c.Z, 'f', -1, 64))
	}
	if c.Type.IsMeasured() {
		sb.WriteRune(' ')
		sb.WriteString(strconv.FormatFloat(c.M, 'f', -1, 64))
	}
	return sb.String()
}
String gives a string representation of the coordinates.
package geom
import (
	"strconv"
	"strings"
)
type Coordinates struct {
	XY
	Z float64
	M float64
	Type CoordinatesType
}