示例#1
0
文件: osr.go 项目: 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
}
示例#2
0
文件: osr.go 项目: 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
}