// Fetch the TOWGS84 parameters if available func (sr SpatialReference) TOWGS84() (coeff [7]float64, errVal error) { err := C.OSRGetTOWGS84(sr.cval, (*C.double)(unsafe.Pointer(&coeff[0])), 7) if err != 0 { return coeff, error(err) } return coeff, nil }
// Fetch the TOWGS84 parameters if available func (sr SpatialReference) TOWGS84() (coeff [7]float64, err error) { err = C.OSRGetTOWGS84(sr.cval, (*C.double)(unsafe.Pointer(&coeff[0])), 7).Err() return }