Пример #1
0
Файл: osr.go Проект: 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
}
Пример #2
0
// 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()
}