Esempio n. 1
0
File: osr.go Progetto: kikht/gdal
// Get spheroid inverse flattening axis
func (sr SpatialReference) InverseFlattening() (float64, error) {
	var err C.OGRErr
	flat := C.OSRGetInvFlattening(sr.cval, &err)
	if err != 0 {
		return float64(flat), error(err)
	}

	return float64(flat), nil
}
Esempio n. 2
0
File: osr.go Progetto: sn-amber/gdal
// Get spheroid inverse flattening axis
func (sr SpatialReference) InverseFlattening() (float64, error) {
	var cErr C.OGRErr
	flat := C.OSRGetInvFlattening(sr.cval, &cErr)
	return float64(flat), cErr.Err()
}