Example #1
0
File: osr.go Project: kikht/gdal
// 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
}
Example #2
0
File: osr.go Project: sn-amber/gdal
// 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
}