// Set EPSG authority info if possible func (sr SpatialReference) AutoIdentifyEPSG() error { err := C.OSRAutoIdentifyEPSG(sr.cval) if err != 0 { return error(err) } return nil }
// Set EPSG authority info if possible func (sr SpatialReference) AutoIdentifyEPSG() error { errorCode := int(C.OSRAutoIdentifyEPSG(sr.cval)) if errorCode != 0 { return fmt.Errorf("Error code %d", errorCode) } else { return nil } }
// Set EPSG authority info if possible func (sr SpatialReference) AutoIdentifyEPSG() error { return C.OSRAutoIdentifyEPSG(sr.cval).Err() }