Esempio n. 1
0
File: osr.go Progetto: kikht/gdal
// Get spheroid semi-minor axis
func (sr SpatialReference) SemiMinorAxis() (float64, error) {
	var err C.OGRErr
	axis := C.OSRGetSemiMinor(sr.cval, &err)
	if err != 0 {
		return float64(axis), error(err)
	}

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